StringToInt defines a string flag with specified name, default value, and usage string. The return value is the address of a map[string]int variable that stores the value of the flag. The value of each argument will not try to be separated by comma
(name string, value map[string]int, usage string)
| 124 | // The return value is the address of a map[string]int variable that stores the value of the flag. |
| 125 | // The value of each argument will not try to be separated by comma |
| 126 | func (f *FlagSet) StringToInt(name string, value map[string]int, usage string) *map[string]int { |
| 127 | p := map[string]int{} |
| 128 | f.StringToIntVarP(&p, name, "", value, usage) |
| 129 | return &p |
| 130 | } |
| 131 | |
| 132 | // StringToIntP is like StringToInt, but accepts a shorthand letter that can be used after a single dash. |
| 133 | func (f *FlagSet) StringToIntP(name, shorthand string, value map[string]int, usage string) *map[string]int { |
nothing calls this directly
no test coverage detected