docs: Improve goimports description (#2109)

This commit is contained in:
Ludovic Fernandez 2021-07-07 22:14:02 +02:00 committed by GitHub
parent a6fcf6f001
commit 36aa12425c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ func NewGoimports() *goanalysis.Linter {
} }
return goanalysis.NewLinter( return goanalysis.NewLinter(
goimportsName, goimportsName,
"Goimports does everything that gofmt does. Additionally it checks unused imports", "In addition to fixing imports, goimports also formats your code in the same style as gofmt.",
[]*analysis.Analyzer{analyzer}, []*analysis.Analyzer{analyzer},
nil, nil,
).WithContextSetter(func(lintCtx *linter.Context) { ).WithContextSetter(func(lintCtx *linter.Context) {