diff options
Diffstat (limited to '')
-rw-r--r-- | man/go-fmt.1 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/man/go-fmt.1 b/man/go-fmt.1 new file mode 100644 index 0000000..603cb8b --- /dev/null +++ b/man/go-fmt.1 @@ -0,0 +1,38 @@ +.\" Hey, EMACS: -*- nroff -*- +.TH GO-FMT 1 "2022-03-15" +.\" Please adjust this date whenever revising the manpage. +.SH NAME +go-fmt \- gofmt (reformat) package sources +.SH SYNOPSIS +.B go fmt +.RB [ \-n ] +.RB [ \-x ] +.RI [ packages ] +.SH DESCRIPTION +Fmt runs the command \(oqgofmt \-l \-w\(cq on the packages named +by the import paths. It prints the names of the files that are modified. +.P +For more about gofmt, see \(oqgo doc cmd/gofmt\(cq. +.br +For more about specifying packages, see \fBgo-packages\fP(7). +.TP +.B \-n +The \-n flag prints commands that would be executed. +.TP +.B \-x +The \-x flag prints commands as they are executed. +.TP +.B \-mod +The \-mod flag\(cqs value sets which module download mode +to use: readonly or vendor. See \(oqgo help modules\(cq for more. +.P +To run gofmt with specific options, run gofmt itself. +.SH SEE ALSO +.BR go-fix (1), +.BR go-vet (1). +.SH 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 \(oqgo help fmt\(cq +for the Debian project (and may be used by others). |