code: func isCIDR(fl FieldLevel) bool {
  
  	_, _, err := net.ParseCIDR(fl.Field().String())
  
  	return err == nil
  }
docs: // IsCIDR is the validation function for validating if the field's value is a valid v4 or v6 CIDR address.