How do I nicely parse a list of program parameters and automate handling \"--help\" and/or \"--version\" (such as \"program [-d value] [--abc] [FILE1]
\") in Go?
One can simply use Golang own library "flag".
It has pretty much code to create CLI like application in GoLang. for Example :
srcDir := flag.String("srcDir", "", "Source directory of the input csv file.")
The above String method of flag library will expect one argument from command prompt.
Go to https://golang.org/pkg/flag/ for more reading.
Happy Learning...