Write better Golang code by using gofmt to format your code
Published in
2 min readOct 19, 2021
If formatting your Go code is a big pain point, then you’ll definitely be interested in leveraging this tool called gofmt
.
gofmt
is used by a whopping 70% of packages in the wild according to a survey by go.dev. That number is pretty impressively high and is a good sign that your code should use it as well or else you would be in the minority.