Documentation ¶
Index ¶
- Constants
- func CheckName(name string) error
- func IsDNS1123Label(value string) []string
- func IsValidIP(value string) []string
- func IsValidWsName(value string) []string
- func MailDropHasSuffix(mail string) string
- func MaxLenError(length int) string
- func NamespaceValidate(s string) error
- func RegexError(msg string, fmt string, examples ...string) string
- func VerifyEmailFormat(email string) bool
- func VerifyGitFormat(gitaddr string) bool
- func VerifyPhoneFormat(mobileNum string) bool
- func VerifyTagFormat(tagstr string) bool
Constants ¶
View Source
const DNS1123LabelMaxLength int = 63
DNS1123LabelMaxLength is a label's max length in DNS (RFC 1123)
Variables ¶
This section is empty.
Functions ¶
func IsDNS1123Label ¶
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
func MailDropHasSuffix ¶
MailDropHasSuffix mail drop has suffix
func MaxLenError ¶
MaxLenError returns a string explanation of a "string too long" validation failure.
func NamespaceValidate ¶
NamespaceValidate returns nil if the string s is a valid namespace.
func RegexError ¶
RegexError returns a string explanation of a regex validation failure.
func VerifyPhoneFormat ¶
VerifyPhoneFormat mobile verify
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.