Worth considering as well that using a Reader rather than a concrete file here will make testing this easier later anyway, since you'll be able to use anyReader. not just a file, you can mock your input using buffers or any old strings.NewReader("thing")!
Worth considering as well that using a
Readerrather than a concrete file here will make testing this easier later anyway, since you'll be able to use anyReader. not just a file, you can mock your input using buffers or any oldstrings.NewReader("thing")!Thanks for taking the time to respond.
That is a fantastic point! I think using a
Readeris going to be the way I go.