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:
14
common/cmdarg/cmdarg.go
Normal file
14
common/cmdarg/cmdarg.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user