4 ms·
Use the Go oracle with an "implements" query.
by mseepgood 11y ago
Use the Go oracle with an "implements" query.
- namelezz 11y agoSo beside familiarizing the language syntax, I need to be aware of a set of unofficial tools and plugins, which are likely going to change in the next couple months, to be able to read the code.
- icholy 11y agoIt's an official tool. Also, most interfaces are very small (one to two methods) so it's pretty easy to figure out. I read/write a decent amount of Go every day and it's not often that I'm asking myself "what implements this interface?".
- noselasd 11y ago"go oracle" is right there with "go build" etc, an official tool that shouldn't change any more than the other tools that's part of the Go distribution.
- ridiculous_fish 11y agoHey, that's pretty cool. I was able to get it to work, though it is very awkward to use directly (it's designed to be integrated into text editors).
- mseepgood 11y agoYes, I use it via vim-go. You can also use it from a local godoc instance: https://golang.org/lib/godoc/analysis/help.html https://golang.org/lib/godoc/analysis/help.html And there's Pythia: https://github.com/fzipp/pythia https://github.com/fzipp/pythia