summaryrefslogtreecommitdiffstats
path: root/man/go-fmt.1
blob: 603cb8b4683153da0ea15a49d3f18c7ad6b3257a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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).