Go Getting started with Go Accessing Documentation Offline


Example

For full documentation, run the command:

godoc -http=:<port-number>

For a tour of Go (highly recommended for beginners in the language):

go tool tour

The two commands above will start web-servers with documentation similar to what is found online here and here respectively.

For quick reference check from command-line, eg for fmt.Print:

godoc cmd/fmt Print
# or
go doc fmt Print

General help is also available from command-line:

go help [command]