go-fmt

fmt Format Go source files. Prints the filenames that are…

go fmt

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

go fmt {{path/to/package}}

go fmt {{./...}}

go fmt -n

go fmt -x

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← go-fix gofmt →