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

Method Set

viper_test.go:161–164  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

159}
160
161func (s *stringValue) Set(val string) error {
162 *s = stringValue(val)
163 return nil
164}
165
166func (s *stringValue) Type() string {
167 return "string"

Callers 15

TestOverridesFunction · 0.45
TestAliasesFunction · 0.45
TestAliasInConfigFileFunction · 0.45
TestRemotePrecedenceFunction · 0.45
TestAliasesOfAliasesFunction · 0.45
TestRecursiveAliasesFunction · 0.45
TestUnmarshalFunction · 0.45
TestBindPFlagsFunction · 0.45

Calls 1

stringValueTypeAlias · 0.85

Tested by

no test coverage detected