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

Function newStringValue

viper_test.go:156–159  ·  view source on GitHub ↗
(val string, p *string)

Source from the content-addressed store, hash-verified

154type stringValue string
155
156func newStringValue(val string, p *string) *stringValue {
157 *p = val
158 return (*stringValue)(p)
159}
160
161func (s *stringValue) Set(val string) error {
162 *s = stringValue(val)

Callers 3

TestBindPFlagFunction · 0.85
TestBoundCaseSensitivityFunction · 0.85
TestBindFlagValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected