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

Method StringToInt64Var

string_to_int64.go:102–104  ·  view source on GitHub ↗

StringToInt64Var defines a string flag with specified name, default value, and usage string. The argument p point64s to a map[string]int64 variable in which to store the values of the multiple flags. The value of each argument will not try to be separated by comma

(p *map[string]int64, name string, value map[string]int64, usage string)

Source from the content-addressed store, hash-verified

100// The argument p point64s to a map[string]int64 variable in which to store the values of the multiple flags.
101// The value of each argument will not try to be separated by comma
102func (f *FlagSet) StringToInt64Var(p *map[string]int64, name string, value map[string]int64, usage string) {
103 f.VarP(newStringToInt64Value(value, p), name, "", usage)
104}
105
106// StringToInt64VarP is like StringToInt64Var, but accepts a shorthand letter that can be used after a single dash.
107func (f *FlagSet) StringToInt64VarP(p *map[string]int64, name, shorthand string, value map[string]int64, usage string) {

Callers 2

setUpS2I64FlagSetFunction · 0.95

Calls 2

VarPMethod · 0.95
newStringToInt64ValueFunction · 0.85

Tested by 2

setUpS2I64FlagSetFunction · 0.76