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

Method Float32SliceVar

float32_slice.go:130–132  ·  view source on GitHub ↗

Float32SliceVar defines a float32Slice flag with specified name, default value, and usage string. The argument p points to a []float32 variable in which to store the value of the flag.

(p *[]float32, name string, value []float32, usage string)

Source from the content-addressed store, hash-verified

128// Float32SliceVar defines a float32Slice flag with specified name, default value, and usage string.
129// The argument p points to a []float32 variable in which to store the value of the flag.
130func (f *FlagSet) Float32SliceVar(p *[]float32, name string, value []float32, usage string) {
131 f.VarP(newFloat32SliceValue(value, p), name, "", usage)
132}
133
134// Float32SliceVarP is like Float32SliceVar, but accepts a shorthand letter that can be used after a single dash.
135func (f *FlagSet) Float32SliceVarP(p *[]float32, name, shorthand string, value []float32, usage string) {

Callers 2

setUpF32SFlagSetFunction · 0.95

Calls 2

VarPMethod · 0.95
newFloat32SliceValueFunction · 0.85

Tested by 2

setUpF32SFlagSetFunction · 0.76