My weekend project for that past couple weeks has been 
roger: https://github.com/buchanae/roger

This is another take on application configuration management: flags, env 
vars, YAML, etc.

The core ideas are:
- define config as structs
- defaults are defined by functions which return instances of structs
- static code analysis and generation provides some extra metadata, pulling 
docs from code comments on struct fields
- able to dump YAML with docs and exclude default/empty values

Other than that, it's probably just a more buggy version of existing 
libraries (such as viper) with less features. I'll probably keep chipping 
away at it though.

It also:
- generates flags
- loads values from environment variables
- loads values from a YAML file
- coerces time.Duration and github.com/alecthomas/units and others 
via github.com/spf13/cast

More in the README

Thanks!
Alex

-- 
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