doufei7464 2019-01-16 06:42 采纳率: 0%
浏览 2330

如何在GoLand中运行并将命令行参数传递给main.go?

我正在尝试用JetBrains的IDE Goland运行Go应用程序。我只想像这样运行以下命令:

$ go run main.go service.go

你能告诉我如何在“编辑配置”面板上进行配置吗?我试着设置“程序参数”,但那是行不通的。https://i.stack.imgur.com/DGvAy.png

  • 写回答

2条回答 默认 最新

  • douganggu4392 2019-01-16 07:11
    关注

    If you need to specify multiple files to the build configuration, you can either use the "Files" field to add more files to compile or change the "Run Kind" to be "Package" from the current "File" .

    The "Program arguments" field is used for arguments to the final program, not to the go tool.

    评论

报告相同问题?

悬赏问题

  • ¥15 怎么获取下面的: glove_word2id.json和 glove_numpy.npy 这两个文件
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug