Files
v2ray_simple/utils/utils.go

15 lines
255 B
Go

// Package utils provides utilities that is used in all codes in verysimple
package utils
import "flag"
func IsFlagPassed(name string) bool {
found := false
flag.Visit(func(f *flag.Flag) {
if f.Name == name {
found = true
}
})
return found
}