StringToStringP is like StringToString, but accepts a shorthand letter that can be used after a single dash.
(name, shorthand string, value map[string]string, usage string)
| 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 { |
| 153 | p := map[string]string{} |
| 154 | f.StringToStringVarP(&p, name, shorthand, value, usage) |
| 155 | return &p |
| 156 | } |
| 157 | |
| 158 | // StringToString defines a string flag with specified name, default value, and usage string. |
| 159 | // The return value is the address of a map[string]string variable that stores the value of the flag. |
no test coverage detected