golang.org/x/tools/gopls@v0.15.3/internal/cmd/usage/format.hlp (about) 1 format the code according to the go standard 2 3 Usage: 4 gopls [flags] format [format-flags] <filerange> 5 6 The arguments supplied may be simple file names, or ranges within files. 7 8 Example: reformat this file: 9 10 $ gopls format -w internal/cmd/check.go 11 12 format-flags: 13 -d,-diff 14 display diffs instead of edited file content 15 -l,-list 16 display names of edited files 17 -preserve 18 with -write, make copies of original files 19 -w,-write 20 write edited content to source files