Skip to content

Version 1.6.0

Latest
Compare
Choose a tag to compare
@seancfoley seancfoley released this 19 May 23:09
· 3 commits to master since this release
4c88618
  • added collection types DualIPv4v6Tries and DualIPv4v6AssociativeTries[V] for dual IPv4/v6 tries and for dual IPv4/v6 associative tries respectively
  • added Enumerate methods, the inverse of the Increment 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 a big.Int argument to IPv6Address and IPv6AddressSection
  • added Floor/Lower/Ceiling/Higher methods to the address trie types, similar to the existing FloorAddedNode/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"