1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-08 20:19:12 -04:00

abstract type for conf load func

This commit is contained in:
vcptr
2019-12-14 23:29:54 +08:00
parent 61e95e06c0
commit 1bb34bfe17
5 changed files with 95 additions and 57 deletions

14
common/cmdarg/cmdarg.go Normal file
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
}