9
gofmt、lint插件格式化go代码
source link: http://www.lzhpo.com/article/143
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
gofmt、lint插件格式化go代码
gofmt
这个是代码格式化的。
命令行使用:
gofmt -w .
类似于前端的那种es-lint,代码检查的。
下载地址:https://github.com/golangci/golangci-lint/releases
我Windows下载的是这个版本:golangci-lint-1.30.0-windows-amd64.zip
# 查看版本golangci-lint --version
golangci-lint run
golangci-lint run [目录]/[文件名]
- 本文作者: lzhpo
- 本文链接: http://www.lzhpo.com/article/143
- 版权声明: 本文为本人原创文章,采用 CC BY 3.0 CN协议 ,可自由转载、引用,但需署名作者且注明文章出处。
正文到此结束
所属分类:Go开发
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK