MCPcopy
hub / github.com/spf13/pflag / Value

Interface Value

flag.go:210–214  ·  flag.go::Value

Value is the interface to the dynamic value stored in a flag. (The default value is represented as a string.)

Source from the content-addressed store, hash-verified

208// Value is the interface to the dynamic value stored in a flag.
209// (The default value is represented as a string.)
210type Value interface {
211 String() string
212 Set(string) error
213 Type() string
214}
215
216// SliceValue is a secondary interface to all flags which hold a list
217// of values. This allows full control over the value of list flags,

Callers 20

StringMethod · 0.65
StringMethod · 0.65
StringMethod · 0.65
createS2I64FlagFunction · 0.65
equalCIDRFunction · 0.65
createS2SFlagFunction · 0.65
StringMethod · 0.65
TestPrintUsageFunction · 0.65
newTextValueFunction · 0.65
SetMethod · 0.65
SetMethod · 0.65
SetFunction · 0.65

Implementers 15

stringToIntValuestring_to_int.go
durationSliceValueduration_slice.go
ipNetSliceValueipnet_slice.go
stringArrayValuestring_array.go
stringToInt64Valuestring_to_int64.go
float64SliceValuefloat64_slice.go
int32SliceValueint32_slice.go
textValuetext.go
stringToStringValuestring_to_string.go
intSliceValueint_slice.go
flagValueWrappergolangflag.go
stringSliceValuestring_slice.go

Calls

no outgoing calls

Tested by

no test coverage detected