mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-10-06 17:27:05 +08:00
15 lines
255 B
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
|
|
}
|