color human output: auto|always|never; default: auto
--no-pager
bool
false
print a long report in full instead of opening it in less
Behavior
Rewrite Rootform source files using the canonical format.
Without a path, fmt reads the current directory. By default it rewrites
changed files. --check reports their names and --diff writes changes to
standard output without rewriting. Diagnostics go to standard error.
Exit status
Status
Description
0
the sources are formatted
1
a source cannot be parsed, or --check or --diff found a source that is not formatted