The following tutorial column will introduce how to install godoc. I hope it will be helpful to friends who need it!
##Enable Go Modules function
go env -w GO111MODULE=on
1. 七牛 CDN go env -w GOPROXY=https://goproxy.cn,direct # 2. 阿里云 go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct # 3. 官方 go env -w GOPROXY=https://goproxy.io,direct
go get golang.org/x/tools/cmd/godoc
godoc -http=:6060
Access the local link to view the document
localhost:6060
The above is the detailed content of How to install godoc. For more information, please follow other related articles on the PHP Chinese website!