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

Method Uint32

uint32.go:66–70  ·  view source on GitHub ↗

Uint32 defines a uint32 flag with specified name, default value, and usage string. The return value is the address of a uint32 variable that stores the value of the flag.

(name string, value uint32, usage string)

Source from the content-addressed store, hash-verified

64// Uint32 defines a uint32 flag with specified name, default value, and usage string.
65// The return value is the address of a uint32 variable that stores the value of the flag.
66func (f *FlagSet) Uint32(name string, value uint32, usage string) *uint32 {
67 p := new(uint32)
68 f.Uint32VarP(p, name, "", value, usage)
69 return p
70}
71
72// Uint32P is like Uint32, but accepts a shorthand letter that can be used after a single dash.
73func (f *FlagSet) Uint32P(name, shorthand string, value uint32, usage string) *uint32 {

Callers 1

testParseFunction · 0.80

Calls 1

Uint32VarPMethod · 0.95

Tested by 1

testParseFunction · 0.64