ExperimentalBindStruct tells Viper to use the new bind struct feature.
()
| 2 | |
| 3 | // ExperimentalBindStruct tells Viper to use the new bind struct feature. |
| 4 | func ExperimentalBindStruct() Option { |
| 5 | return optionFunc(func(v *Viper) { |
| 6 | v.experimentalBindStruct = true |
| 7 | }) |
| 8 | } |