I know I can define flags like this:
initPtr := flag.String("init", "config.json", "Initialize with config filename")
Which I will call like this:
myapp --init=myconfig.json
I wonder though if I can define something like commands so that to call the app like this?
myapp init --filename=myconfig.json
myapp check --filename=myconfig.json
myapp run