koding / multiconfig

Load configuration from multiple sources in Go
http://godoc.org/github.com/koding/multiconfig
MIT License
454 stars 64 forks source link

flag: fix panicing for unexported fields in structs #24

Closed fatih closed 9 years ago

fatih commented 9 years ago

If a config had an unexported field it would just panic, example:

type GCE struct {
    ProjectID   string
    AccountFile string
    Region      string

    svc *compute.ImagesService
}

Trying to load this would cause multiconfig to panic, because svc is unexported.

cihangir commented 9 years ago

:+1: