go將一些工具拆分出來了,編譯時不帶這些工具,需要單獨編譯。
下載源碼
git clone https://github.com/golang/tools
編譯godoc
go build golang.org/x/tools/cmd/godoc
可以構建二進制執行文件
移動到bin目錄下即可使用
go將一些工具拆分出來了,編譯時不帶這些工具,需要單獨編譯。
下載源碼
git clone https://github.com/golang/tools
編譯godoc
go build golang.org/x/tools/cmd/godoc
可以構建二進制執行文件
移動到bin目錄下即可使用