Go ships with flag
standard library package, which covers a lot of what’s needed to write command-line interfaces, however if you need more power and better structure for your console apps, try codegangsta’s package cli.go.
Continue reading cli.go — better command-line applications in Go