Anyone knows how to set arguments of golang in run configurations?

Answered
Seems `args` is not available for go
0
3 comments

Please see params section at the bottom in the Run Configuration reference.

1

sorry,what i mean is pass the command line arguments to golang program.

0

There was an issue which will be fixed with the next Fleet update so there will be an ability to pass arguments to a Go program using runParams. E.g.

      {
        "name": "go run with args",
        "type": "go",
        "goExecPath": "/usr/local/go/bin/go",
        "buildParams": ["go-awesome-project"],
        "runParams": ["a", "b", "c"],
      },
0

Please sign in to leave a comment.