Documentation ¶
Index ¶
Constants ¶
View Source
const ( REGEX_RFC1123 = `^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$` REGEX_SIMPLE_SEMVER = `^v\d+\.\d+\.\d+$` REGEX_PASCAL_CASE = `^([A-Z][a-z\d]+)+$` // 대문자로 시작하는 camel case(pascal case or upper camel case)를 표현한 정규식 REGEX_RFC1123_DNS_LABEL = "[a-z0-9]([-a-z0-9]*[a-z0-9])?" REGEX_RESOURCE_NAME = `^` + REGEX_RFC1123_DNS_LABEL + "$" REGEX_RFC1123_SUBDOMAIN = `^` + REGEX_RFC1123_DNS_LABEL + `(\.` + REGEX_RFC1123_DNS_LABEL + `)*$` )
Variables ¶
This section is empty.
Functions ¶
func NewValidator ¶
func NewValidator() (*validator.Validate, *ut.UniversalTranslator)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.