mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 10:21:20 -05:00
16 lines
226 B
Go
16 lines
226 B
Go
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
|
|
}
|