3 ms·
I always find it's difficult to navigate Go repositories on GitHub. Because there can be several source files under a package it's difficult to look for an impl
by namelezz 11y ago
I always find it's difficult to navigate Go repositories on GitHub. Because there can be several source files under a package it's difficult to look for an implementation of a function or method. For Java, I can easily guess where the methods are by looking at import statements.
- misframer 11y agogodoc is very helpful for this. You can click on the name of a type or function and it will take you to the definition.
- kjksf 11y agoI friend of mine wrote a tool to fix that. See http://gotools.org/github.com/kjk/fofou http://gotools.org/github.com/kjk/fofou for example (just prepend http://gotools.org/ http://gotools.org/ to any Go import path). Then you can use Ctrl-f (Cmd-F on mac) search built-in browser to look for things. It doesn't work for large repositories but most of them aren't.