diff --git a/experimental.go b/experimental.go new file mode 100644 index 0000000..f648f84 --- /dev/null +++ b/experimental.go @@ -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 + }) +}