go fmt [packages...]

Gofmt (reformat) package sources

Arguments

NameDescription
packagesfilepaths

Options

NameDescription
-nPrint the commands that would be executed
-xPrint the commands as they are executed
-mod <mode>Which module download mode to use