How do I access command-line arguments in Go? They\'re not passed as arguments to main.
A complete program, possibly created by linking m
Peter's answer is exactly what you need if you just want a list of arguments.
However, if you're looking for functionality similar to that present on UNIX, then you could use the go implementation of docopt. You can try it here.
docopt will return JSON that you can then process to your heart's content.