StringArray defines a string flag with specified name, default value, and usage string. The return value is the address of a []string variable that stores the value of the flag. The value of each argument will not try to be separated by comma. Use a StringSlice for that.
(name string, value []string, usage string)
| 100 | // The return value is the address of a []string variable that stores the value of the flag. |
| 101 | // The value of each argument will not try to be separated by comma. Use a StringSlice for that. |
| 102 | func (f *FlagSet) StringArray(name string, value []string, usage string) *[]string { |
| 103 | p := []string{} |
| 104 | f.StringArrayVarP(&p, name, "", value, usage) |
| 105 | return &p |
| 106 | } |
| 107 | |
| 108 | // StringArrayP is like StringArray, but accepts a shorthand letter that can be used after a single dash. |
| 109 | func (f *FlagSet) StringArrayP(name, shorthand string, value []string, usage string) *[]string { |