package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Packages

Package net provides utility functions for working with IPs (net.IP).

# Functions

NewBasicRangerEntry returns a basic RangerEntry that only stores the network itself.
NewPCTrieRanger returns a versionedRanger that supports both IPv4 and IPv6 using the path compressed trie implemention.

# Variables

AllIPv4 is a IPv4 CIDR that contains all networks.
AllIPv6 is a IPv6 CIDR that contains all networks.
ErrInvalidNetworkInput is returned upon invalid network input.
ErrInvalidNetworkNumberInput is returned upon invalid network input.

# Interfaces

Ranger is an interface for cidr block containment lookups.
RangerEntry is an interface for insertable entry into a Ranger.