Documentation ¶
Index ¶
- func CheckDomain(domain string) bool
- func CheckIP(i string) bool
- func CompareIP(v1, v2 string) (int, error)
- func Contains(subnetStr, s string) (bool, error)
- func GetDiffHosts(hostsOld, hostsNew []string) (add, sub []string)
- func GetHostIP(host string) string
- func GetHostIPAndPortOrDefault(host, Default string) (string, string)
- func GetHostIPAndPortSlice(hosts []string, Default string) (res []string)
- func GetHostIPSlice(hosts []string) (res []string)
- func GetHostIPs(hosts []string) []string
- func GetLocalIpv4() string
- func GetSSHHostIPAndPort(host string) (string, string)
- func IPToInt(v string) *big.Int
- func IsIPv6(netIP net.IP) bool
- func IsIpv4(ip string) bool
- func IsLocalIP(ip string, addrs *[]net.Addr) bool
- func ListLocalHostAddrs() (*[]net.Addr, error)
- func LocalIP(addrs *[]net.Addr) string
- func NextIP(ip string) net.IP
- func ParseIPList(s string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDiffHosts ¶
func GetHostIPAndPortSlice ¶
func GetHostIPSlice ¶
func GetHostIPs ¶
func GetLocalIpv4 ¶
func GetLocalIpv4() string
func GetSSHHostIPAndPort ¶
func ListLocalHostAddrs ¶
func ParseIPList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.