strvali

package
v1.3.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 4 Imported by: 0

README

strvali

常用字符串校验,现有支持email和手机号校验

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidEmail

func IsValidEmail(email string) bool

IsValidEmail checks if the provided email string is a valid email format

func IsValidPhoneNum

func IsValidPhoneNum(areaCode, phone string) bool

IsValidPhoneNum verify phone(xx) with area(+xx) code.

func NormalizeEmail added in v1.3.13

func NormalizeEmail(email string) string

NormalizeEmail converts email to lowercase Email addresses are case-insensitive according to RFC 5321

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL