Documentation
¶
Overview ¶
Package netipx contains net/netip extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrToAddrPort ¶
AddrToAddrPort converts a net.Addr to a netip.AddrPort.
If the input is nil or neither a *net.TCPAddr nor *net.UDPAddr, returns an unspecified IPv6 address with port 0.
For *net.TCPAddr and *net.UDPAddr addresses, returns their corresponding netip.AddrPort representation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.