Below you will find pages that utilize the taxonomy term “golint”
June 20, 2014
golint—golang代码质量检测
"github: https://github.com/golang/lint\ngolint是类似javascript中的jslint的工具,主要功能就是检测代码中不规范的地方。golint用于检测go代码。\n使用 $ go get github.com/golang/lint $ go install github.com/golang/lint golint 文件名或者目录 检测对应的代码。\ngolint会输出一些代码存在的问题: 比如:\nrecorder.go:55:5: exported var RecordBind should have comment or be unexported recorder.go:158:1: exported function Record_ErrorRecord should have comment or be unexported recorder.go:173:6: don\u0026#39;t use underscores in Go names; type Data_MemStats should be DataMemStats …"