summaryrefslogtreecommitdiffstats
path: root/man/go-fmt.1
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 13:20:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 13:20:27 +0000
commit1148aec146e14f4e490beca612d6cb98ef847659 (patch)
tree4cbf5a02dba5a6a26c656e7ba839ccd91bc392c1 /man/go-fmt.1
parentInitial commit. (diff)
downloadgolang-defaults-1148aec146e14f4e490beca612d6cb98ef847659.tar.xz
golang-defaults-1148aec146e14f4e490beca612d6cb98ef847659.zip
Adding upstream version 2:1.19~1.upstream/2%1.19_1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man/go-fmt.1')
-rw-r--r--man/go-fmt.138
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).