Documentation
¶
Index ¶
- func IPAddress(s string) (netip.Addr, bool)
- func IPNetwork(s string, strict bool) (netip.Prefix, bool)
- func InetAton(s string) (netip.Addr, bool)
- func IsLinkLocal(ip netip.Addr) bool
- func IsLoopback(ip netip.Addr) bool
- func IsPrivate(ip netip.Addr) bool
- func IsReserved(ip netip.Addr) bool
- func NetworkContains(prefix netip.Prefix, addr netip.Addr) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPAddress ¶
Parses an address like ipaddress.ip_address including an IPv6 scope suffix, false on ValueError
func IPNetwork ¶
Parses a network like ipaddress.ip_network, netmask and hostmask suffixes included, false on ValueError
func InetAton ¶
Parses dotted IPv4 like glibc inet_aton with decimal, octal and hex parts and short forms
func IsLinkLocal ¶
Link local classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address
func IsLoopback ¶
Loopback classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address
func IsPrivate ¶
Private classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address
func IsReserved ¶
Reserved classification of CPython 3.13 ipaddress, mapped IPv6 judged by its IPv4 address
Types ¶
This section is empty.