Essential Go Getting started  Edit on GitHub      File Issue

Access documentation offline

To browse full documentation locally, run:

godoc -http=localhost:9000

Then open localhost:9000 in the browser. It’ll show the same information as

You can run guided tour locally with:

go get
go tool tour

This is the equivalent of

You can use godoc for quick reference. For example, to see documentation for fmt.Print:

godoc cmd/fmt Print

General help is also available from the command-line:

go help [command]

For example, to see documentation for go build use go help build.

  ↑ ↓ to navigate     ↵ to select     Esc to close