17 lines
204 B
Go
17 lines
204 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
type StringArray []string
|
||
|
|
||
|
func (a *StringArray) Set(s string) error {
|
||
|
*a = append(*a, s)
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (a *StringArray) String() string {
|
||
|
return fmt.Sprint(*a)
|
||
|
}
|