跳至主要内容

[Note] Golang Linter

gci

gci @ Github

$ go get github.com/daixiang0/gci

Use

# -w	write result to (source) file instead of stdout
# -d display diffs instead of rewriting files
$ gci -w -d main.go