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

Method Uint

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

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

(name string, value uint, usage string)

Source from the content-addressed store, hash-verified

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

Callers 2

TestToGoflagsFunction · 0.95
testParseFunction · 0.80

Calls 1

UintVarPMethod · 0.95

Tested by 2

TestToGoflagsFunction · 0.76
testParseFunction · 0.64