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

Method Int8

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

Int8 defines an int8 flag with specified name, default value, and usage string. The return value is the address of an int8 variable that stores the value of the flag.

(name string, value int8, usage string)

Source from the content-addressed store, hash-verified

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

Callers 2

TestToGoflagsFunction · 0.95
testParseFunction · 0.80

Calls 1

Int8VarPMethod · 0.95

Tested by 2

TestToGoflagsFunction · 0.76
testParseFunction · 0.64