Skip to content
Permalink
Browse files

gofumports: support a -format-only flag which same as goimports

  • Loading branch information...
zchee authored and mvdan committed May 23, 2019
1 parent c76ff6f commit 582c384fada06432be07e01330dfc64d3dbfda98
Showing with 1 addition and 0 deletions.
  1. +1 −0 gofumports/goimports.go
@@ -49,6 +49,7 @@ var (
func init() {
flag.BoolVar(&options.AllErrors, "e", false, "report all errors (not just the first 10 on different lines)")
flag.StringVar(&imports.LocalPrefix, "local", "", "put imports beginning with this string after 3rd-party packages; comma-separated list")
flag.BoolVar(&options.FormatOnly, "format-only", false, "if true, don't fix imports and only format. In this mode, goimports is effectively gofmt, with the addition that imports are grouped into sections.")
}

func report(err error) {

0 comments on commit 582c384

Please sign in to comment.
You can’t perform that action at this time.