You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ gofumports --help
usage: gofumports [flags] [path ...]
-cpuprofile string
CPU profile output
-d display diffs instead of rewriting files
-e report all errors (not just the first 10 on different lines)
-format-only
if true, don't fix imports and only format. In this mode, gofumports is effectively gofmt, with the addition that imports are grouped into sections.
-l list files whose formatting differs from goimport's
-lang string
target Go version in the form 1.X (default from go.mod)
-local string
put imports beginning with this string after 3rd-party packages; comma-separated list
-memprofile string
memory profile output
-memrate int
if > 0, sets runtime.MemProfileRate
-srcdir dir
choose imports as if source code is from dir. When operating on a single file, dir may instead be the complete file name.
-trace string
trace profile output
-v verbose logging
-w write result to (source) file instead of stdout
The text was updated successfully, but these errors were encountered:
Oh, this is on purpose, apologies for the confusion. goimports does not have -s, which is part of -extra, so it's impossible to implement the flag there.
gofumports was always a temporary hack so that people could use both tools at once in IDEs, but it will likely be removed soon now that gopls supports gofumpt directly. See #75.
gofumports does not support extra options.
The text was updated successfully, but these errors were encountered: