IsMatchSchemeIpPort 判断字符串是否符合scheme://ip:port
(s string)
| 92 | |
| 93 | // IsMatchSchemeIpPort 判断字符串是否符合scheme://ip:port |
| 94 | func IsMatchSchemeIpPort(s string) bool { |
| 95 | return schemeIpPortRegexp.MatchString(s) |
| 96 | } |
| 97 | |
| 98 | // IsMatchCIDRIpv4 判断字符串是否符合ipv4或者ipv4的cidr |
| 99 | func IsMatchCIDRIpv4(s string) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected