packer-cn/helper/flag-kv/flag_strings.go

17 lines
226 B
Go
Raw Normal View History

package kvflag
import (
"strings"
)
type StringSlice []string
func (s *StringSlice) String() string {
return strings.Join(*s, ", ")
}
func (s *StringSlice) Set(value string) error {
*s = append(*s, value)
return nil
}