MCPcopy
hub / github.com/XTLS/RealiTLScanner / ExistOnlyOne

Function ExistOnlyOne

utils.go:101–113  ·  view source on GitHub ↗
(arr []string)

Source from the content-addressed store, hash-verified

99 return r.MatchString(domain)
100}
101func ExistOnlyOne(arr []string) bool {
102 exist := false
103 for _, item := range arr {
104 if item != "" {
105 if exist {
106 return false
107 } else {
108 exist = true
109 }
110 }
111 }
112 return exist
113}
114func IterateAddr(addr string) <-chan Host {
115 hostChan := make(chan Host)
116 _, _, err := net.ParseCIDR(addr)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected