abstract type for conf load func

This commit is contained in:
vcptr
2019-12-14 23:48:56 +08:00
parent 61e95e06c0
commit 1bb34bfe17
5 changed files with 95 additions and 57 deletions
+14
View File
@@ -0,0 +1,14 @@
package cmdarg
import "strings"
type Arg []string
func (c *Arg) String() string {
return strings.Join([]string(*c), " ")
}
func (c *Arg) Set(value string) error {
*c = append(*c, value)
return nil
}