2024-06-04 13:32:09 +00:00
|
|
|
package viper
|
|
|
|
|
|
|
|
// ExperimentalBindStruct tells Viper to use the new bind struct feature.
|
|
|
|
func ExperimentalBindStruct() Option {
|
|
|
|
return optionFunc(func(v *Viper) {
|
2024-06-04 19:06:34 +00:00
|
|
|
v.experimentalBindStruct = true
|
2024-06-04 13:32:09 +00:00
|
|
|
})
|
|
|
|
}
|