go 中进行IP的校验 func ValidateIP(ipStr string) bool { var ( ip net.IP err error ) switch strings.Contains(ipStr, "/") { case