dongyue6199 2017-12-10 03:49
浏览 493
已采纳

golang如何使用gofmt?

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?

  • 写回答

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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?