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

Function setUpS2I64FlagSetWithDefault

string_to_int64_test.go:20–24  ·  view source on GitHub ↗
(s2ip *map[string]int64)

Source from the content-addressed store, hash-verified

18}
19
20func setUpS2I64FlagSetWithDefault(s2ip *map[string]int64) *FlagSet {
21 f := NewFlagSet("test", ContinueOnError)
22 f.StringToInt64Var(s2ip, "s2i", map[string]int64{"a": 1, "b": 2}, "Command separated ls2it!")
23 return f
24}
25
26func createS2I64Flag(vals map[string]int64) string {
27 var buf bytes.Buffer

Callers 2

TestS2I64DefaultFunction · 0.85
TestS2I64WithDefaultFunction · 0.85

Calls 2

StringToInt64VarMethod · 0.95
NewFlagSetFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…