Format a file, and then simplify the code, overwriting the original file

gofmt

gofmt -s -w {{source.go}}

click the source code to copy install gofmt on any operating system with command-not-found.com