On Wed, 18 Jan 2017 23:35:30 -0800 (PST) hui zhang <fastfad...@gmail.com> wrote:
> I am using bufio.Reader and binary.Read > to read binary from file, I want to seek in the file or bufio.Reader > Below code does not work > > fi.Seek(0, os.SEEK_SET) ////Does not work for bufio.Reader > > > below definition shows that r control the position , but I did not > see any method to set it That's Reset(), as I've already explained in this mail thread. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.