logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

go-fmt - gofmt (reformat) package sources

Author

       This manual page was written by Michael Stapelberg  <stapelberg@debian.org>  and  is  maintained  by  the
       Debian  Go  Compiler  Team <team+go-compiler@tracker.debian.org> based on the output of ‘go help fmt’ for
       the Debian project (and may be used by others).

                                                   2022-03-15                                          GO-FMT(1)

Description

       Fmt runs the command ‘gofmt -l -w’ on the packages named by the import paths.  It prints the names of the
       files that are modified.

       For more about gofmt, see ‘go doc cmd/gofmt’.
       For more about specifying packages, see go-packages(7).

       -n     The -n flag prints commands that would be executed.

       -x     The -x flag prints commands as they are executed.

       -mod   The  -mod  flag’s  value  sets which module download mode to use: readonly or vendor. See ‘go help
              modules’ for more.

       To run gofmt with specific options, run gofmt itself.

Name

       go-fmt - gofmt (reformat) package sources

See Also

go-fix(1), go-vet(1).

Synopsis

gofmt [-n] [-x] [packages]

See Also