Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IpToAddr ¶
IpToAddr converts the net.IP to netip.Addr. If slice's length is not 4 or 16, IpToAddr returns netip.Addr{}
func PrefixCompare ¶ added in v1.18.8
PrefixCompare returns an integer comparing two prefixes. The result will be 0 if p == p2, -1 if p < p2, and +1 if p > p2. modify from https://github.com/golang/go/issues/61642#issuecomment-1848587909
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.