duan198727 2016-12-28 15:49
浏览 342
已采纳

如何在GoLand中运行整个项目?

I have a small project with several .go files. When I run main.go only this compiles but nothing else, so my application crushes. I understand that I have to change settings in Run -> Edit Configurations, but don't know what to do exactly. IDE also doesn’t see terminal pre-compiled package, so "Package" option instead of "File" doesn't work.

  • 写回答

1条回答 默认 最新

  • doubei2340 2016-12-28 19:50
    关注

    To run the whole project you have to go Run -> Edit Configuration, set Run Kind to Package and type in field Package your project directory name.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?