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


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

参考:

https://www.cnblogs.com/xiyu714/p/9894285.html

相关文章:

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