Toggle navigation
首页
技术
骑行
羽毛球
资讯
联络我
登录
提升golang代码品质的工具
2020-01-30
golang
> 本文介绍2个提升golang代码品质的工具 ## [Go Report Card](https://goreportcard.com/) web版的扫描工具大集合,输入一个github的地址就可以检查该项目的品质,包含如下内容: * gofmt * go_vet * gocyclo * golint * license * ineffassign * misspell:检查是否有拼写错误 ## [GoCover](https://gocover.io/) web版的测试覆盖率检查,GoCover.io offers the code coverage of any golang package as a service. 这个也可以在本地通过go tool完成: 1. go test -coverprofile coverage.html 2. go tool cover -html .\coverage.html
×
本文为博主原创,如需转载,请注明出处:
http://www.supperxin.com
返回博客列表