IsMatchCIDRIpv4 判断字符串是否符合ipv4或者ipv4的cidr
(s string)
| 97 | |
| 98 | // IsMatchCIDRIpv4 判断字符串是否符合ipv4或者ipv4的cidr |
| 99 | func IsMatchCIDRIpv4(s string) bool { |
| 100 | return cidrIpv4Regexp.MatchString(s) |
| 101 | } |
| 102 | |
| 103 | // GetVariableKey 从环境变量标准格式${abc}中取得key abc |
| 104 | func GetVariableKey(s string) string { |
nothing calls this directly
no outgoing calls
no test coverage detected