mirror of
https://github.com/spf13/viper
synced 2024-12-22 03:27:03 +00:00
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
1 changed files with 8 additions and 0 deletions
8
experimental.go
Normal file
8
experimental.go
Normal file
|
@ -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 a new issue