Documentation
¶
Overview ¶
Package netconv provides utilities to convert between netaddr and netip. To convert from a net.IP, use the netaddr/netip API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsAddrPort ¶
AsAddrPort returns a as a netip.AddrPort.
func AsIPPrefix ¶
AsIPPrefix returns a as a netaddr.IPPrefix. If a has Bits of -1, indicating an invalid bits, the returned IPPrefix will have Bits of 255. AsIPPrefix and AsPrefix do not round trip for invalid Bits values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.