I started learning golang and installed GoLand from JetBrains. I am reading the book The Go Programming Language, and in the first chapter author strongly recommends using the gofmt
tool before each save. How I can follow this recommendation in GoLand?

golang如何使用gofmt?
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
- douhuang2282 2017-12-10 08:27关注
GoLand have commands to
go fmt
your file or project. Right click on your file and you will find it under "Go tools". You could see its shortcut there.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报