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

Function KeyDelimiter

viper.go:238–242  ·  view source on GitHub ↗

KeyDelimiter sets the delimiter used for determining key parts. By default it's value is ".".

(d string)

Source from the content-addressed store, hash-verified

236// KeyDelimiter sets the delimiter used for determining key parts.
237// By default it's value is ".".
238func KeyDelimiter(d string) Option {
239 return optionFunc(func(v *Viper) {
240 v.keyDelim = d
241 })
242}
243
244// StringReplacer applies a set of replacements to a string.
245type StringReplacer interface {

Callers 2

TestSubWithKeyDelimiterFunction · 0.85
TestKeyDelimiterFunction · 0.85

Calls 1

optionFuncFuncType · 0.85

Tested by 2

TestSubWithKeyDelimiterFunction · 0.68
TestKeyDelimiterFunction · 0.68