(ip net.IP)
| 111 | } |
| 112 | |
| 113 | func toNetipAddr(ip net.IP) netip.Addr { |
| 114 | a, _ := netip.AddrFromSlice(ip) |
| 115 | return a.Unmap() |
| 116 | } |
| 117 | |
| 118 | // toPrefix converts n into a netip.Prefix. If n is not a valid IPv4 or IPV6 |
| 119 | // address, ToPrefix returns netip.Prefix{}, false. |
no outgoing calls
no test coverage detected
searching dependent graphs…