blob: 5851fe2d99bb7bddba97499fe21981a6b2670b46 (
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
|
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Gofmt formats Go programs.
Without an explicit path, it processes the standard input. Given a file,
it operates on that file; given a directory, it operates on all .go files in
that directory, recursively. (Files starting with a period are ignored.)
Usage:
gofmt [flags] [path ...]
The flags are:
-l
just list files whose formatting differs from gofmt's; generate no other output
unless -w is also set.
-w
if set, overwrite each input file with its output.
-spaces
align with spaces instead of tabs.
-tabwidth=8
tab width in spaces.
-align=true
align columns.
Debugging flags:
-trace
print parse trace.
-comments=true
print comments; if false, all comments are elided from the output.
*/
package documentation
|