Documentation
¶
Index ¶
- func FormatBase64(base64Str string) bool
- func FormatCreditCard(cardNumber string) bool
- func FormatHexColor(color string) bool
- func FormatIDCard(idCard string) bool
- func FormatJSON(jsonStr string) bool
- func FormatUUID(uuidStr string) bool
- func FormatXML(xmlStr string) bool
- func IsInteger(value interface{}) (any, bool)
- func IsNumber(val any) (any, bool)
- func ValidateAdvanced(operator types.Operator, value any, rule []any) (string, bool)
- func ValidateContent(operator types.Operator, dataType string, value, valued any, rule []any) (string, bool)
- func ValidateDate(value any, rule []any) (time.Time, bool)
- func ValidateEmail(email string) bool
- func ValidateFormat(operator types.Operator, value any, rule []any) (string, bool)
- func ValidateLength(operator types.Operator, value any, rule []any) (string, bool)
- func ValidatePhone(phone string) bool
- func ValidateType(operator types.Operator, value any, rule []any) (any, string, bool)
- func ValidateURL(urlStr string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateAdvanced ¶
func ValidateContent ¶
func ValidateFormat ¶
func ValidateLength ¶
func ValidateType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.