spf13--viper/experimental.go
Mark Sagi-Kazar 96ad74f6ae feat: allow enabling bind struct with an option
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2024-06-05 13:35:34 +02:00

9 lines
200 B
Go

package viper
// ExperimentalBindStruct tells Viper to use the new bind struct feature.
func ExperimentalBindStruct() Option {
return optionFunc(func(v *Viper) {
v.experimentalFinder = true
})
}