code: func isCIDRv4(fl FieldLevel) bool {
  
  	ip, _, err := net.ParseCIDR(fl.Field().String())
  
  	return err == nil && ip.To4() != nil
  }
docs: // IsCIDRv4 is the validation function for validating if the field's value is a valid v4 CIDR address.