package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
ParseINet parses postgres style INET types.
ParseIP parses s as an IP address, returning the result.
RandIPAddr generates a random IPAddr.
# Constants
IPv4family is for IPs in the IPv4 space.
IP address lengths (bytes).
IPv4mappedIPv6prefix is the byte prefix for IPv4-mapped IPv6.
IPv4mask is used to select only the lower 32 bits of uint128.
IPv4max is used for overflows.
IPv4size 1 byte for family, 1 byte for mask, 4 for IP.
IPv6family is for IPs in the IPv6 space.
IP address lengths (bytes).
IPv6size 1 byte for family, 1 byte for mask, 16 for IP.