termtrick.com
Run
API
Facebook
Twitter
LinkedIn
Copy link
Format a file, and then simplify the code, overwriting the original file
gofmt
Tool for formatting Go source code.
More information: <https://golang.org/cmd/gofmt/>.
Trick copyright:
tl;dr; <
https://github.com/tldr-pages/tldr
>
gofmt -s -w {{source.go}}
click the source code to copy
install
gofmt
on any operating system with
command-not-found.com