修订代码,示例;添加geosite分流,域名现已支持full,sub,regex,geosite,match

This commit is contained in:
hahahrfool
2022-04-05 08:59:26 +08:00
parent 59b9c0cb47
commit 3a997a32bc
10 changed files with 208 additions and 97 deletions

14
utils/utils.go Normal file
View File

@@ -0,0 +1,14 @@
// 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
}