mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-21 23:41:41 -04:00
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
20 lines
296 B
Go
20 lines
296 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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
|
|
}
|