CmdID

CmdID / Commands

gofumpt

Strictly format Go files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Format Go files

gofumpt -w path/to/directoryIdentify

list files whose formatting differs from gofumpt

gofumpt -l path/to/directoryIdentify

Report all errors

gofumpt -e path/to/directoryIdentify

Display diffs

gofumpt -d path/to/directoryIdentify

Format Go files with stricter rules

gofumpt -extra path/to/directoryIdentify

Display diffs with stricter rules

gofumpt -extra -d path/to/directoryIdentify

Display help

gofumpt --helpIdentify