跳至主要内容

[Note] Golang Linter

gci

gci @ Github

$ go install github.com/daixiang0/gci@latest

Use

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