IP address manipulation library written in Go. This library treats IP addresses as generic unsigned integers capable of arithmetic and bitwise operations.
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/ip/compare |
Generic comparison types and functions |
import github.com/ipfreely-uk/go/ip/network |
IP address collection & iteration 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 |