blob: 389532babf438835ff3f56bfa4aa86a6eb74ed96 [file] [log] [blame]
format the code according to the go standard
Usage:
gopls [flags] format [format-flags] <filerange>
The arguments supplied may be simple file names, or ranges within files.
Example: reformat this file:
$ gopls format -w internal/cmd/check.go
format-flags:
-d,-diff
display diffs instead of edited file content
-l,-list
display names of edited files
-preserve
with -write, make copies of original files
-w,-write
write edited content to source files