You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
302 B
20 lines
302 B
package args |
|
|
|
import ( |
|
"strings" |
|
) |
|
|
|
// StringSliceVar is |
|
type StringSliceVar []string |
|
|
|
func (v StringSliceVar) String() string { |
|
return strings.Join(v, ",") |
|
} |
|
|
|
// Set is |
|
func (v *StringSliceVar) Set(in string) error { |
|
for _, a := range strings.Split(in, ",") { |
|
*v = append(*v, a) |
|
} |
|
return nil |
|
}
|
|
|