gofmt
Tool for formatting Go source code.
- Format a file and display the result to the console:
- Format a file, overwriting the original file in-place:
- Format a file, and then simplify the code, overwriting the original file:
- Print all (including spurious) errors:
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).