Docopt seems awesome. https://github.com/docopt/docopt.go
Satyam On Tuesday, July 26, 2016 at 11:16:03 PM UTC-7, Gerardo Oscar JT wrote: > > Maybe too simple, maybe there are several solutions, but here > https://github.com/fulldump/goconfig is a configuration library to avoid > the over-verbosity of flag library. It also allow load configuration from a > json file. > > It works like this: > > type myconfig struct { > Name string `The name of something` > EnableLog bool `Enable logging into logdb` > MaxProcs int `Maximum number of procs` > } > > c := &myconfig{ > EnableLog: true, > } > > goconfig.Read(c) > > > Goconf is very useful in my projects, maybe it could be useful for others > too. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.