NOTE

godoc

Godoc can serve Go documentation locally for viewing in a browser. These notes record the startup command and local address.

Go1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. Installation

go install golang.org/x/tools/cmd/godoc@latest

2. Usage

cd main
godoc

Open in the browser: http://127.0.0.1:6060/

3. References

Generating and Viewing Documentation with go doc and godoc - CSDN Blog

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub