github.com/chwjbn/xclash@v0.2.0/rule/base.go (about) 1 package rules 2 3 import ( 4 "errors" 5 ) 6 7 var ( 8 errPayload = errors.New("payload error") 9 10 noResolve = "no-resolve" 11 ) 12 13 func HasNoResolve(params []string) bool { 14 for _, p := range params { 15 if p == noResolve { 16 return true 17 } 18 } 19 return false 20 }