go fmt [packages...]
Gofmt (reformat) package sources
Arguments
Name | Description |
---|---|
packages | filepaths |
Options
Name | Description |
---|---|
-n | Print the commands that would be executed |
-x | Print the commands as they are executed |
-mod <mode> | Which module download mode to use |