Pythia is a browser based user interface for the Go source code guru, which is a tool for navigating Go code.
For more information on the Go guru, see Using Go Guru.
Building Pythia requires Go with module support (Go 1.11 or later).
To install, run
$ git clone https://github.com/fzipp/pythia
$ cd pythia
$ go install
You will now find a pythia
binary in your $GOBIN
or $GOPATH/bin
directory.
Running Pythia also requires guru
:
$ go get -u golang.org/x/tools/cmd/guru
Start the web application with a package path, e.g.:
$ pythia net/http
By default it will listen on port :8080 and try to launch the application
in your browser. You can choose a different port via the -http
flag, e.g.:
$ pythia -http :6060 fmt
Run pythia -help
for more information.