IsMatchIpPort 判断字符串是否符合ip:port
(s string)
| 87 | |
| 88 | // IsMatchIpPort 判断字符串是否符合ip:port |
| 89 | func IsMatchIpPort(s string) bool { |
| 90 | return ipPortRegexp.MatchString(s) |
| 91 | } |
| 92 | |
| 93 | // IsMatchSchemeIpPort 判断字符串是否符合scheme://ip:port |
| 94 | func IsMatchSchemeIpPort(s string) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected