-
Notifications
You must be signed in to change notification settings - Fork 0
08 提升golang代码品质的工具
Jinxin Chen edited this page Jan 30, 2020
·
1 revision
本文介绍2个提升golang代码品质的工具
web版的扫描工具大集合,输入一个github的地址就可以检查该项目的品质,包含如下内容:
- gofmt
- go_vet
- gocyclo
- golint
- license
- ineffassign
- misspell:检查是否有拼写错误
web版的测试覆盖率检查,GoCover.io offers the code coverage of any golang package as a service.
这个也可以在本地通过go tool完成:
- go test -coverprofile coverage.html
- go tool cover -html .\coverage.html