Goland通过调用go build 生成可执行文件。
默认Goland是可以执行程序,但你找不到可执行文件。
你需要自定义配置文件。


创建go build配置文件
Run kind 选Directory
Directory 选你的main包所在文件夹
Output directory设置与go build -o 不相容,所以不用设置,我们使用-o参数来控制可执行文件的路径以及名字
Working directory保持默认就好
Go tool arguments 就是go build 的参数

相关文章:

  • 2021-12-06
  • 2021-09-11
  • 2021-12-24
  • 2022-01-21
  • 2022-01-29
  • 2022-02-27
  • 2021-09-05
猜你喜欢
  • 2022-12-23
  • 2021-08-07
  • 2022-02-18
  • 2021-12-14
  • 2022-03-01
  • 2022-12-23
相关资源
相似解决方案