Auto Simplify your Golang code

Do you know you can simplify your Go Code using the gofmt -s command like this

gofmt -s file.go

The simplify command

When invoked with -s gofmt will make the following source transformations where possible.

Screenshot

Source

Written on June 2, 2017