MCPcopy
hub / github.com/spf13/viper / Option

Interface Option

viper.go:226–228  ·  viper.go::Option

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

Source from the content-addressed store, hash-verified

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.
226type Option interface {
227 apply(v *Viper)
228}
229
230type optionFunc func(v *Viper)
231

Callers 2

NewWithOptionsFunction · 0.65
SetOptionsFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected