Documentation ¶
Index ¶
- func DeriveGatewayIP(cidr string) string
- func GetIPAtIndex(ipNet net.IPNet, index int64) net.IP
- func IPAddrs2str(ips []netip.Addr) []string
- func IPs2str(ips []net.IP) []string
- func IPsIntersect(a []net.IP, b []net.IP) bool
- func IPv6(ip net.IP) bool
- func ToIP(addr string) (net.IP, error)
- func ToIPAddrs(addrs []string) ([]netip.Addr, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveGatewayIP ¶ added in v1.2.0
DeriveGatewayIP gateway ip from cidr
func GetIPAtIndex ¶ added in v1.2.1
GetIPAtIndex get the IP by index in the range of ipNet. The index is start with 0.
func IPAddrs2str ¶ added in v1.7.0
func IPsIntersect ¶
IPsIntersect return is 2 set is intersect
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.