个人环境:macOS 官方提供的代码规范检查工具。 0. 序言 0.1 本文的目录 0.2 阅读本文可以给你带来什么 了解在 Goland 配置 golint 工具。 1. 编译生成可执行文件 官网地址:https://github.com/golang/lint go env 查看配置 cd $GOPATH/src git clone https://github.com/golang/lint.git cd ./lint/golint go build 可以将其移动到 $GOPATH/bin 目录下面 2. Goland 配置