PJCHENder 未整理筆記

[Golang] 常見問題

2020-06-02

[Golang] 常見問題

gofmt vs goimports

gofmt, goimports, goreturns — why do we need three formatters?! @ Medium

1
2
3
gofmt = golang formatter
goimports = gofmt + fixing imports # For CI
goreturns = goimports + return statement syntactic sugar # For IDE
Tags: Go

掃描二維條碼,分享此文章