koding / multiconfig

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

validator support pointer to struct #71

Open smthpickboy opened 6 years ago

smthpickboy commented 6 years ago

required tag is not working if its related field is inside a struct which is referenced using pointer in parent struct.

type Parent struct {
    C *Child
}

type Child {
    SomeField `toml:"some_field" required:"true"`
}