On Wed, 18 Jan 2017 22:22:48 -0800 (PST) hui zhang <fastfad...@gmail.com> wrote:
[...] > fi, err := os.Open("./output.bin") [...] > fi.seek()////????? The usual drill is: 1. Get the documentation on os.Open(): $ go doc os.Open Notice what it returns in its 1st return value has the type *File. Since it has no "pkg." qualifier it means that name is defined in the same package. 2. So we now read the docs on os.File: $ go doc os.File ...and see all of its methods there, inclusing Seek(). 3. So we read the docs on it: $ go doc os.File.Seek -- 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.