4 ms·
I wish the go documentation would provide a list of all the interfaces which are implemented by functions or vice versa, it would make finding usable functions
by Zariel 13y ago
I wish the go documentation would provide a list of all the interfaces which are implemented by functions or vice versa, it would make finding usable functions much easier.
The lack of clearly defined interfaces in the documentation was one of the big turn offs when I tried go a while back.
- galaktor 13y agoThe doc could only display implemented interfaces that it knows about, so when you generate the docs they show which interfaces a type implements from within that particular library (and it's dependencies, since go takes it all as source code). You wouldn't, however, know which interfaces from github.com/foo are implemented by types of bitbucket.org/bar unless their docs were somehow generated together.
- _ak 13y agoThat's impossible because godoc cannot possibly know about all interfaces that is in all the Go code out there.
- georgemcbay 13y agoIt can know about all the interfaces in your current $GOROOT and $GOPATH, which is the set of code you'd be interested in anyway.
- DanWaterworth 13y agoInstalling packages is now quadratic time. Go doesn't scale.