Versions in this module Expand all Collapse all v1 v1.1.2 Mar 20, 2024 Changes in this version + func GetHostByName(hostname string) (string, error) + func GetHostsByName(hostname string) ([]string, error) + func GetIntranetIp() (ip string, err error) + func GetIntranetIpArray() (ips []string, err error) + func GetIpArray() (ips []string, err error) + func GetMac() (mac string, err error) + func GetMacArray() (macs []string, err error) + func GetNameByAddr(ipAddress string) (string, error) + func GetSegment(ip string) string + func Ip2long(ip string) uint32 + func IsIntranet(ip string) bool + func Long2ip(long uint32) string + func MustGetIntranetIp() string + func ParseAddress(address string) (string, int) + func Validate(ip string) bool