inetaf / netaddr

Network address types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to merge ips?

douloveppt opened this issue · comments

Is there a method to merge ip list?

maybe IPSet

Yup, an IPSet lets you construct a minimized set of IP ranges, if that's what you're asking.

Also this package is deprecated, use the stdlib net/netip types and https://pkg.go.dev/go4.org/netipx instead.