mirror of
https://github.com/spf13/viper
synced 2025-05-05 19:57:18 +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
676d2eb166
commit
29d94f84b7
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…
Add table
Reference in a new issue