Documentation
¶
Overview ¶
Package validutil provides reusable string and format validation helpers used by admin API input checks and domain-level guardrails.
It includes pattern validators for contact/network identifiers and password strength predicates shared by operator and user-management flows.
Index ¶
- func CheckPassword(s string) bool
- func CheckStrongPassword(s string) bool
- func IsCnMobile(val interface{}) bool
- func IsCnPhone(val interface{}) bool
- func IsEmail(val interface{}) bool
- func IsIP(val interface{}) bool
- func IsIP4(val interface{}) bool
- func IsIP6(val interface{}) bool
- func IsInt(val interface{}) bool
- func IsURL(val interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
func CheckStrongPassword ¶
func IsCnMobile ¶
func IsCnMobile(val interface{}) bool
IsCnMobile reports whether val matches a mainland China mobile number.
func IsCnPhone ¶
func IsCnPhone(val interface{}) bool
IsCnPhone reports whether val matches a mainland China landline number. Supported examples include 0578-12345678-1234 and 057812345678-1234.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.