kelseyhightower / envconfig

Golang library for managing configuration data from environment variables
MIT License
5.02k stars 377 forks source link

Support processing of embedded structs. #28

Closed metcalf closed 8 years ago

metcalf commented 8 years ago

envconfig currently ignores embedded structs in Process. Embedding can be helpful if you want to join together configuration from multiple application subpackages and process in a single shot. This updates envconfig to offer simple support for embedded structs.

Note that it completely ignores the name and tags on the struct. I'd be happy to implement some semantic here (e.g. using the struct name / tags as an additional prefix) but I wanted to get feedback on the overall approach first.

metcalf commented 8 years ago

Ah, I should learn to look before typing, #22 handles this and does a better job.