IP address manipulation library written in Go. This library treats IP addresses as generic unsigned integers capable of arithmetic and bitwise operations and includes a few discrete set collection types. This library does not perform network I/O.
Add an import statement to go.mod to utilise.
Package | Purpose |
---|---|
import github.com/ipfreely-uk/go/ip |
Core IP address types |
import github.com/ipfreely-uk/go/ipset |
IP address collection types |
Selective comparison with standard library types in netip.
Feature | IPFreely.uk | netip |
---|---|---|
Immutable Types | Y | Y |
Categorization | Y | |
Generic Types | Y | |
Arithmetic/Bitwise Ops | Y | |
IPv6 Zones | Y | |
CIDR Blocks | Y | Y |
Arbitrary Ranges/Sets | Y | |
Iteration | Y |