thanks all,   I use ide go to definition,  it go to the file_unix.go
in this file seek  is a private method.
So  I am confused 

在 2017年1月19日星期四 UTC+8下午2:45:16,Konstantin Khomoutov写道:
>
> On Wed, 18 Jan 2017 22:22:48 -0800 (PST) 
> hui zhang <fastf...@gmail.com <javascript:>> 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.

Reply via email to