Skip to content

Version 1.7.0

Latest
Compare
Choose a tag to compare
@seancfoley seancfoley released this 19 Aug 19:21
· 5 commits to master since this release
  • 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 a func(yield func(V) bool) which can be assigned to a variable of the type iter.Seq[V] in the standard library
    • added StdPullIterator to convert the "pull" iterators in this library to iterators with API similar to iter.Pull
  • added ToAddressBase method to TrieKeyConstraint to expose addresses from generic keys, to more easily enable generic functions on tries
  • added new generic helper functions ToIPv4Slice, ToIPv6Slice, ToIPSlice, ToMACSlice and ToAddressBaseSlice for conversions of slices of addresses, address ranges, and address components
  • added new merge functions MergeToPrefixBlocks and MergeToSequentialBlocks for combined IPv4/IPv6 merging
  • removed caching functionality from ContainingFirstIterator, use all-node ContainingFirstAllNodeIterator 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"