Files
Harshavardhan 9a2586cc6b gofumpt: add page (#20076)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-12-22 06:08:31 +02:00

596 B

gofumpt

Strictly format Go files. See also: gofmt. More information: https://github.com/mvdan/gofumpt#gofumpt.

  • Format Go files:

gofumpt -w {{path/to/directory}}

  • [l]ist files whose formatting differs from gofumpt:

gofumpt -l {{path/to/directory}}

  • Report all [e]rrors:

gofumpt -e {{path/to/directory}}

  • Display [d]iffs:

gofumpt -d {{path/to/directory}}

  • Format Go files with stricter rules:

gofumpt -extra {{path/to/directory}}

  • Display [d]iffs with stricter rules:

gofumpt -extra -d {{path/to/directory}}

  • Display help:

gofumpt {{[-h|--help]}}