- added collection types
DualIPv4v6Tries
andDualIPv4v6AssociativeTries[V]
for dual IPv4/v6 tries and for dual IPv4/v6 associative tries respectively - added
Enumerate
methods, the inverse of theIncrement
methods, to find the position of an address in a subnet, or to find the distance between two addresses - added
Overlaps
methods to check for overlapping subnets, and for checking sequential range overlap with a subnet - added an
Increment
method accepting abig.Int
argument toIPv6Address
andIPv6AddressSection
- added
Floor
/Lower
/Ceiling
/Higher
methods to the address trie types, similar to the existingFloorAddedNode
/LowerAddedNode
/CeilingAddedNode
/HigherAddedNode
methods - added the extraneous digits IPv4 parsing option
allow_inet_aton_extraneous_digits
- added
ShortestPrefixMatch
methods to associative tries and trie nodes - improved radix and bit-count validation
Download source:
go get github.com/seancfoley/ipaddress-go@v1.6.0
In your go.mod file:
require github.com/seancfoley/ipaddress-go v1.6.0
In your source:
import "github.com/seancfoley/ipaddress-go/ipaddr"