An interesting overview by Robert Griesemer of the motivation for gofmt, how it has influenced code formatting in other languages, the things that went well, and the lessons learned.
I found this point amusing:
gofmt’s style is nobody’s favorite, yet gofmt is everybody’s favorite.