Versions in this module Expand all Collapse all v1 v1.3.3 Nov 16, 2019 Changes in this version + const DN + const IPv4 + const IPv6 + var DNPattern = regexp.MustCompile(DN) + var InvalidAddress = fmt.Errorf("invalid address") + func CheckAddress(urlStr string) (string, error) + func GetSingleIPAddress(addrStr string) (net.IP, error) + func IsPublicAddr(addrStr string) bool + func IsSameAddress(ip1str, ip2str string) bool + func ResolveHostDomain(domainName string) ([]net.IP, error) + type AddressType int + const AddressTypeError + const AddressTypeFQDN + const AddressTypeIP + func CheckAddressType(urlStr string) AddressType