StringToIntVar defines a string flag with specified name, default value, and usage string. The argument p points to a map[string]int variable in which to store the value of the flag. The value of each argument will not try to be separated by comma
(p *map[string]int, name string, value map[string]int, usage string)
| 112 | // The argument p points to a map[string]int variable in which to store the value of the flag. |
| 113 | // The value of each argument will not try to be separated by comma |
| 114 | func StringToIntVar(p *map[string]int, name string, value map[string]int, usage string) { |
| 115 | CommandLine.VarP(newStringToIntValue(value, p), name, "", usage) |
| 116 | } |
| 117 | |
| 118 | // StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash. |
| 119 | func StringToIntVarP(p *map[string]int, name, shorthand string, value map[string]int, usage string) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…