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

Method Uint64P

uint64.go:73–77  ·  view source on GitHub ↗

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

(name, shorthand string, value uint64, usage string)

Source from the content-addressed store, hash-verified

71
72// Uint64P is like Uint64, but accepts a shorthand letter that can be used after a single dash.
73func (f *FlagSet) Uint64P(name, shorthand string, value uint64, usage string) *uint64 {
74 p := new(uint64)
75 f.Uint64VarP(p, name, shorthand, value, usage)
76 return p
77}
78
79// Uint64 defines a uint64 flag with specified name, default value, and usage string.
80// The return value is the address of a uint64 variable that stores the value of the flag.

Callers 2

Uint64Function · 0.80
Uint64PFunction · 0.80

Calls 1

Uint64VarPMethod · 0.95

Tested by

no test coverage detected