Go 语言代码格式化工具 gofmt vs goimports

在格式化 Go 代码的时候,经常会用到 gofmtgoimports 两个工具,不过他们之间到底有何区别呢?

In addition to fixing imports, goimports also formats your code in the same style as gofmt[……]

继续阅读