mirror of https://github.com/spf13/viper.git
feat: allow enabling bind struct with an option
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
db85e2a92d
commit
96ad74f6ae
|
@ -0,0 +1,8 @@
|
|||
package viper
|
||||
|
||||
// ExperimentalBindStruct tells Viper to use the new bind struct feature.
|
||||
func ExperimentalBindStruct() Option {
|
||||
return optionFunc(func(v *Viper) {
|
||||
v.experimentalFinder = true
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue