abstract type for conf load func

This commit is contained in:
vcptr committed 2019-12-14 23:48:56 +08:00
1 parent 61e95e06c0
commit 1bb34bfe17
5 files changed
+95 -57

No files matched your search

+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
}