IsMatchDomainPort 判断字符串是否符合域名或者域名:port
(s string)
| 82 | |
| 83 | // IsMatchDomainPort 判断字符串是否符合域名或者域名:port |
| 84 | func IsMatchDomainPort(s string) bool { |
| 85 | return domainPortRegexp.MatchString(s) |
| 86 | } |
| 87 | |
| 88 | // IsMatchIpPort 判断字符串是否符合ip:port |
| 89 | func IsMatchIpPort(s string) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected