fmt Format Go source files. Prints the filenames that are…
Format Go source files. Prints the filenames that are changed. More information: https://pkg.go.dev/cmd/go#hdr-Gofmt__reformat__package_sources.
go fmt
$GOPATH/src
):go fmt {{path/to/package}}
...
):go fmt {{./...}}
go fmt -n
go fmt -x