2013-06-04 14:13:02 -07:00
|
|
|
package build
|
|
|
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
|
|
|
|
|
type stringSliceValue []string
|
|
|
|
|
|
|
|
|
|
func (s *stringSliceValue) String() string {
|
|
|
|
|
return strings.Join(*s, ",")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *stringSliceValue) Set(value string) error {
|
|
|
|
|
*s = strings.Split(value, ",")
|
|
|
|
|
return nil
|
|
|
|
|
}
|