 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  const DNS1123LabelMaxLength int = 63
    DNS1123LabelMaxLength is a label's max length in DNS (RFC 1123)
      View Source
      
  const DNS1123SubdomainMaxLength int = 253
    DNS1123SubdomainMaxLength is a subdomain's max length in DNS (RFC 1123)
Variables ¶
      View Source
      
  var DNS1123LabelRegexp = regexp.MustCompile("^" + dns1123LabelFmt + "$")
    DNS1123LabelRegexp is a regular expression matching a dns1123 label.
      View Source
      
  var DNS1123SubdomainRegexp = regexp.MustCompile("^" + dns1123SubdomainFmt + "$")
    DNS1123SubdomainRegexp is a regular expression matching a RFC 1123 subdomain.
Functions ¶
func ValidateDNSLabel ¶
ValidateDNSLabel checks if the id is a valid DNS label.
func ValidateDNSSubdomain ¶
ValidateDNSSubdomain checks if ID is a valid DNS subdomain.
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.