Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
161
func
(s *stringValue) Set(val string) error {
162
*s = stringValue(val)
163
return
nil
164
}
165
166
func
(s *stringValue) Type() string {
167
return
"string"
Callers
15
TestOverrides
Function · 0.45
TestAliases
Function · 0.45
TestAliasInConfigFile
Function · 0.45
TestRemotePrecedence
Function · 0.45
TestAliasesOfAliases
Function · 0.45
TestRecursiveAliases
Function · 0.45
TestUnmarshal
Function · 0.45
TestUnmarshalWithDefaultDecodeHook
Function · 0.45
TestUnmarshalWithDecoderOptions
Function · 0.45
TestUnmarshalWithAutomaticEnv
Function · 0.45
TestBindPFlags
Function · 0.45
TestBindPFlagsStringSlice
Function · 0.45
Calls
1
stringValue
TypeAlias · 0.85
Tested by
no test coverage detected