package
0.0.3
Repository: https://github.com/tiechui1994/proxy.git
Documentation: pkg.go.dev

# Functions

AddrFrom16 returns the IPv6 address given by the bytes in addr.
AddrFrom4 returns the address of the IPv4 address given by the bytes in addr.
AddrFromSlice parses the 4- or 16-byte byte slice as an IPv4 or IPv6 address.
AddrPortFrom returns an [AddrPort] with the provided IP and port.
No description provided by the author
No description provided by the author
Get returns a pointer representing the comparable value cmpVal.
GetByString is identical to Get, except that it is specialized for strings.
IPv4Unspecified returns the IPv4 unspecified address "0.0.0.0".
IPv6LinkLocalAllNodes returns the IPv6 link-local all nodes multicast address ff02::1.
IPv6LinkLocalAllRouters returns the IPv6 link-local all routers multicast address ff02::2.
IPv6Loopback returns the IPv6 loopback address ::1.
IPv6Unspecified returns the IPv6 unspecified address "::".
Itoa converts val to a decimal string.
MustParseAddr calls [ParseAddr](s) and panics on error.
MustParseAddrPort calls [ParseAddrPort](s) and panics on error.
MustParsePrefix calls [ParsePrefix](s) and panics on error.
ParseAddr parses s as an IP address, returning the result.
ParseAddrPort parses s as an [AddrPort].
ParsePrefix parses s as an IP address prefix.
PrefixFrom returns a [Prefix] with the provided IP address and bit prefix length.
Uitoa converts val to a decimal string.

# Structs

Addr represents an IPv4 or IPv6 address (with or without a scoped addressing zone), similar to [net.IP] or [net.IPAddr].
AddrPort is an IP and a port number.
Prefix is an IP address prefix (CIDR) representing an IP network.
A Value pointer is the handle to an underlying comparable value.