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

Function Float32SliceVarP

float32_slice.go:146–148  ·  view source on GitHub ↗

Float32SliceVarP is like Float32SliceVar, but accepts a shorthand letter that can be used after a single dash.

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

Source from the content-addressed store, hash-verified

144
145// Float32SliceVarP is like Float32SliceVar, but accepts a shorthand letter that can be used after a single dash.
146func Float32SliceVarP(p *[]float32, name, shorthand string, value []float32, usage string) {
147 CommandLine.VarP(newFloat32SliceValue(value, p), name, shorthand, usage)
148}
149
150// Float32Slice defines a []float32 flag with specified name, default value, and usage string.
151// The return value is the address of a []float32 variable that stores the value of the flag.

Callers

nothing calls this directly

Calls 2

newFloat32SliceValueFunction · 0.85
VarPMethod · 0.80

Tested by

no test coverage detected