mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-23 09:51:08 -05:00
14 lines
242 B
Go
14 lines
242 B
Go
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
|
|
}
|