Golang Tips
快速的单个文件测试 # run without build go run main.go # 如果 main.go依赖test.go, 那就需要指定好依赖文件,或者用go build go run main.go test.go # or build it go build -o xxx main.go ./xxx godoc 文档: go install golang.org/x/tools/cmd/godoc@latest godoc -http :6060 # visit http://localhost:6060/ 使用protobuf,需要安装protoc-gen-go, 同时~/go/bin要在 PATH 里 ...