2012-12-11 01:59:23 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2014-11-09 19:51:10 +00:00
|
|
|
"strings"
|
2012-12-11 01:59:23 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type StringArray []string
|
|
|
|
|
|
|
|
func (a *StringArray) Set(s string) error {
|
|
|
|
*a = append(*a, s)
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *StringArray) String() string {
|
2014-11-09 19:51:10 +00:00
|
|
|
return strings.Join(*a, ",")
|
2012-12-11 01:59:23 +00:00
|
|
|
}
|