summaryrefslogtreecommitdiffstats
path: root/man/go-fmt.1
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:31:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 19:31:31 +0000
commitaf06fce89246dcb464e3431830a5f8e2b24d9e91 (patch)
tree4cbf5a02dba5a6a26c656e7ba839ccd91bc392c1 /man/go-fmt.1
parentInitial commit. (diff)
downloadgolang-defaults-af06fce89246dcb464e3431830a5f8e2b24d9e91.tar.xz
golang-defaults-af06fce89246dcb464e3431830a5f8e2b24d9e91.zip
Adding upstream version 2:1.20~2.upstream/2%1.20_2
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).