Option configures Viper using the functional options paradigm popularized by Rob Pike and Dave Cheney. If you're unfamiliar with this style, see https://commandcenter.blogspot.com/2014/01/self-referential-functions-and-design.html and https://dave.cheney.net/2014/10/17/functional-options-for-friendl
| 224 | // see https://commandcenter.blogspot.com/2014/01/self-referential-functions-and-design.html and |
| 225 | // https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis. |
| 226 | type Option interface { |
| 227 | apply(v *Viper) |
| 228 | } |
| 229 | |
| 230 | type optionFunc func(v *Viper) |
| 231 |
no outgoing calls
no test coverage detected