Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PatternEmail is email PatternEmail = "" /* 133-byte string literal not displayed */ // PatternIP is ip PatternIP = `` /* 659-byte string literal not displayed */ // PatternURLSchema is URL schema PatternURLSchema = `((ftp|tcp|udp|wss?|https?):\/\/)` // PatternURLUsername is URL username PatternURLUsername = `(\S+(:\S*)?@)` // PatternURLPath is URL path PatternURLPath = `((\/|\?|#)[^\s]*)` // PatternURLPort is URL port PatternURLPort = `(:(\d{1,5}))` // PatternURLIP is URL ip PatternURLIP = `([1-9]\d?|1\d\d|2[01]\d|22[0-3])(\.(1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.([0-9]\d?|1\d\d|2[0-4]\d|25[0-4]))` // PatternURLSubdomain is URL subdomain PatternURLSubdomain = `((www\.)|([a-zA-Z0-9]([-\.][-\._a-zA-Z0-9]+)*))` // PatternURL is URL PatternURL = `^` + PatternURLSchema + `?` + PatternURLUsername + `?` + `((` + PatternURLIP + `|(\[` + PatternIP + `\])|(([a-zA-Z0-9]([a-zA-Z0-9-_]+)?[a-zA-Z0-9]([-\.][a-zA-Z0-9]+)*)|(` + PatternURLSubdomain + `?))?(([a-zA-Z\x{00a1}-\x{ffff}0-9]+-?-?)*[a-zA-Z\x{00a1}-\x{ffff}0-9]+)(?:\.([a-zA-Z\x{00a1}-\x{ffff}]{1,}))?))\.?` + PatternURLPort + `?` + PatternURLPath + `?$` )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.