StringToString defines a string flag with specified name, default value, and usage string. The return value is the address of a map[string]string 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]string, usage string)
| 143 | // The return value is the address of a map[string]string variable that stores the value of the flag. |
| 144 | // The value of each argument will not try to be separated by comma |
| 145 | func (f *FlagSet) StringToString(name string, value map[string]string, usage string) *map[string]string { |
| 146 | p := map[string]string{} |
| 147 | f.StringToStringVarP(&p, name, "", value, usage) |
| 148 | return &p |
| 149 | } |
| 150 | |
| 151 | // StringToStringP is like StringToString, but accepts a shorthand letter that can be used after a single dash. |
| 152 | func (f *FlagSet) StringToStringP(name, shorthand string, value map[string]string, usage string) *map[string]string { |
nothing calls this directly
no test coverage detected