Oh my gosh! There are dozens of 'goconfig' projects at github and hundreds 
of 'configo' projects. This is crazy. I have been looking at some of them 
and probably fulldump/goconfig has the best logo :)  And also it is the 
most generic and simpler one with default values > json values > cli values 
precedence.

fun4all !!

El miércoles, 27 de julio de 2016, 8:16:03 (UTC+2), Gerardo Oscar JT 
escribió:
>
> 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.

Reply via email to