Re: [go-nuts] interface question

2018-03-02 Thread Lutz Horn
How can i get a list about which interface is implemented by this struct methods? (Because in Go there is no explicit interface declaration.) os.Open returns an os.File (https://golang.org/pkg/os/#Open). os.File (https://golang.org/pkg/os/#File) has functions and methods listed in the index o

[go-nuts] interface question

2018-03-02 Thread k1attila1
Hi Beginner question I want to use this : func Open(name string) (*File, error) I would like to us *File as return value. File is declared as : type File struct { *file // os specific } I understand it. BUT How can i get a list about which interface is implemented by this struct method