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

Method Replace

flag.go:223–223  ·  view source on GitHub ↗

Replace will fully overwrite any data currently in the flag value list.

([]string)

Source from the content-addressed store, hash-verified

221 Append(string) error
222 // Replace will fully overwrite any data currently in the flag value list.
223 Replace([]string) error
224 // GetSlice returns the flag value list as an array of strings.
225 GetSlice() []string
226}

Callers 15

TestDSAsSliceValueFunction · 0.65
SetMethod · 0.65
TestIPSAsSliceValueFunction · 0.65
TestUISAsSliceValueFunction · 0.65
TestI64SAsSliceValueFunction · 0.65
replaceSeparatorsFunction · 0.65
SetMethod · 0.65
TestF32SAsSliceValueFunction · 0.65
TestF64SAsSliceValueFunction · 0.65
TestSAAsSliceValueFunction · 0.65
wrapFunction · 0.65
TestI32SAsSliceValueFunction · 0.65

Implementers 11

durationSliceValueduration_slice.go
stringArrayValuestring_array.go
float64SliceValuefloat64_slice.go
int32SliceValueint32_slice.go
intSliceValueint_slice.go
stringSliceValuestring_slice.go
int64SliceValueint64_slice.go
ipSliceValueip_slice.go
float32SliceValuefloat32_slice.go
uintSliceValueuint_slice.go
boolSliceValuebool_slice.go

Calls

no outgoing calls

Tested by 11

TestDSAsSliceValueFunction · 0.52
TestIPSAsSliceValueFunction · 0.52
TestUISAsSliceValueFunction · 0.52
TestI64SAsSliceValueFunction · 0.52
replaceSeparatorsFunction · 0.52
TestF32SAsSliceValueFunction · 0.52
TestF64SAsSliceValueFunction · 0.52
TestSAAsSliceValueFunction · 0.52
TestI32SAsSliceValueFunction · 0.52
TestBSAsSliceValueFunction · 0.52
TestSSAsSliceValueFunction · 0.52