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

Method Int64Var

int64.go:40–42  ·  view source on GitHub ↗

Int64Var defines an int64 flag with specified name, default value, and usage string. The argument p points to an int64 variable in which to store the value of the flag.

(p *int64, name string, value int64, usage string)

Source from the content-addressed store, hash-verified

38// Int64Var defines an int64 flag with specified name, default value, and usage string.
39// The argument p points to an int64 variable in which to store the value of the flag.
40func (f *FlagSet) Int64Var(p *int64, name string, value int64, usage string) {
41 f.VarP(newInt64Value(value, p), name, "", usage)
42}
43
44// Int64VarP is like Int64Var, but accepts a shorthand letter that can be used after a single dash.
45func (f *FlagSet) Int64VarP(p *int64, name, shorthand string, value int64, usage string) {

Callers 1

CopyToGoFlagSetMethod · 0.80

Calls 2

VarPMethod · 0.95
newInt64ValueFunction · 0.85

Tested by

no test coverage detected