Examples using... "net"

Recent
WriteTo implements the PacketConn WriteTo method.
ParseIP parses s as an IP address, returning the result. The string s can be in dotted decimal ("192.0.2.1") or IPv6 ("2001:db8::68") form. If s is not a valid textual representation of an IP address, ParseIP returns nil.
ParseCIDR parses s as a CIDR notation IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291.
A Listener is a generic network listener for stream-oriented protocols.
IPv4Mask returns the IP mask (in 4-byte form) of the IPv4 mask a.b.c.d.
IPv4 returns the IP address (in 16-byte form) of the IPv4 address a.b.c.d.
Mask returns the result of masking the IP address ip with mask.
DefaultMask returns the default IP mask for the IP address ip. Only IPv4 addresses have default masks; DefaultMask returns nil if ip is not a valid IPv4 address.
CIDRMask returns an IPMask consisting of `ones' 1 bits followed by 0s up to a total length of `bits' bits. For a mask of this form, CIDRMask is the inverse of IPMask.Size.
Parsing a URL which includes a scheme, authentication info, host, port, path, query params, and a query fragment.