- integration with the new standard library iter package introduced in Go version 1.23 without adding a dependency on Go 1.23 (required Go version remains 1.18)
- added
StdPushIterator
to convert the "pull" iterators in this library to "push" iterators, returning afunc(yield func(V) bool)
which can be assigned to a variable of the typeiter.Seq[V]
in the standard library - added
StdPullIterator
to convert the "pull" iterators in this library to iterators with API similar toiter.Pull
- added
- added
ToAddressBase
method toTrieKeyConstraint
to expose addresses from generic keys, to more easily enable generic functions on tries - added new generic helper functions
ToIPv4Slice
,ToIPv6Slice
,ToIPSlice
,ToMACSlice
andToAddressBaseSlice
for conversions of slices of addresses, address ranges, and address components - added new merge functions
MergeToPrefixBlocks
andMergeToSequentialBlocks
for combined IPv4/IPv6 merging - removed caching functionality from
ContainingFirstIterator
, use all-nodeContainingFirstAllNodeIterator
instead
Download source:
go get github.com/seancfoley/ipaddress-go@v1.7.0
In your go.mod file:
require github.com/seancfoley/ipaddress-go v1.7.0
In your source:
import "github.com/seancfoley/ipaddress-go/ipaddr"