Created
May 19, 2015 14:34
-
-
Save tcnksm/3d949a742007f988eaec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type StringFlag []string | |
func (s *StringFlag) String() string { | |
return strings.Join(*s, ",") | |
} | |
func (s *StringFlag) Set(value string) error { | |
*s = append(*s, value) | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment