I'm sorry if this has been discussed a lot, but I didn't see any recent threads on the topic from a search of golang-nuts.
I'm a bit confused when I should be using bufio.Scanner vs. bufio.Reader, and when I should be using ReadLine vs ReadBytes, etc. The direct question is when are the right times for the data types?
In my specific case, I need to search a file for a specific string at the start of a line, aka "\nStart". After start will be an integer n ("\nStart=40), and the next n lines contain a set of space-delimited integers which need to be read and dealt with depending on their values. It seems like using bufio.Scanner is idiomatic to find "\nStart", but then after that bufio.Reader.ReadBytes would be the best to read in the integer lines. Is that correct? Thanks.