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

Method Uint16P

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

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

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

Source from the content-addressed store, hash-verified

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

Callers 2

Uint16Function · 0.80
Uint16PFunction · 0.80

Calls 1

Uint16VarPMethod · 0.95

Tested by

no test coverage detected