package
1.24.4
Repository: https://pkg.go.dev/std
Documentation: pkg.go.dev

# Packages

Package http provides HTTP client and server implementations.
Package mail implements parsing of mail messages.
Package netip defines an IP address type that's a small value type.
Package rpc provides access to the exported methods of an object across a network or other I/O connection.
Package smtp implements the Simple Mail Transfer Protocol as defined in RFC 5321.
Package textproto implements generic support for text-based request/response protocols in the style of HTTP, NNTP, and SMTP.
Package url parses URLs and implements query escaping.

# Functions

CIDRMask returns an [IPMask] consisting of 'ones' 1 bits followed by 0s up to a total length of 'bits' bits.
Dial connects to the address on the named network.
DialIP acts like [Dial] for IP networks.
DialTCP acts like [Dial] for TCP networks.
DialTimeout acts like [Dial] but takes a timeout.
DialUDP acts like [Dial] for UDP networks.
DialUnix acts like [Dial] for Unix networks.
FileConn returns a copy of the network connection corresponding to the open file f.
FileListener returns a copy of the network listener corresponding to the open file f.
FilePacketConn returns a copy of the packet network connection corresponding to the open file f.
InterfaceAddrs returns a list of the system's unicast interface addresses.
InterfaceByIndex returns the interface specified by index.
InterfaceByName returns the interface specified by name.
Interfaces returns a list of the system's network interfaces.
IPv4 returns the IP address (in 16-byte form) of the IPv4 address a.b.c.d.
IPv4Mask returns the IP mask (in 4-byte form) of the IPv4 mask a.b.c.d.
JoinHostPort combines host and port into a network address of the form "host:port".
Listen announces on the local network address.
ListenIP acts like [ListenPacket] for IP networks.
ListenMulticastUDP acts like [ListenPacket] for UDP networks but takes a group address on a specific network interface.
ListenPacket announces on the local network address.
ListenTCP acts like [Listen] for TCP networks.
ListenUDP acts like [ListenPacket] for UDP networks.
ListenUnix acts like [Listen] for Unix networks.
ListenUnixgram acts like [ListenPacket] for Unix networks.
LookupAddr performs a reverse lookup for the given address, returning a list of names mapping to that address.
LookupCNAME returns the canonical name for the given host.
LookupHost looks up the given host using the local resolver.
LookupIP looks up host using the local resolver.
LookupMX returns the DNS MX records for the given domain name sorted by preference.
LookupNS returns the DNS NS records for the given domain name.
LookupPort looks up the port for the given network and service.
LookupSRV tries to resolve an [SRV] query of the given service, protocol, and domain name.
LookupTXT returns the DNS TXT records for the given domain name.
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.
ParseIP parses s as an IP address, returning the result.
ParseMAC parses s as an IEEE 802 MAC-48, EUI-48, EUI-64, or a 20-octet IP over InfiniBand link-layer address using one of the following formats: 00:00:5e:00:53:01 02:00:5e:10:00:00:00:01 00:00:00:00:fe:80:00:00:00:00:00:00:02:00:5e:10:00:00:00:01 00-00-5e-00-53-01 02-00-5e-10-00-00-00-01 00-00-00-00-fe-80-00-00-00-00-00-00-02-00-5e-10-00-00-00-01 0000.5e00.5301 0200.5e10.0000.0001 0000.0000.fe80.0000.0000.0000.0200.5e10.0000.0001.
Pipe creates a synchronous, in-memory, full duplex network connection; both ends implement the [Conn] interface.
ResolveIPAddr returns an address of IP end point.
ResolveTCPAddr returns an address of TCP end point.
ResolveUDPAddr returns an address of UDP end point.
ResolveUnixAddr returns an address of Unix domain socket end point.
SplitHostPort splits a network address of the form "host:port", "host%zone:port", "[host]:port" or "[host%zone]:port" into host or host%zone and port.
TCPAddrFromAddrPort returns addr as a [TCPAddr].
UDPAddrFromAddrPort returns addr as a [UDPAddr].

# Constants

interface supports broadcast access capability.
interface is a loopback interface.
interface supports multicast access capability.
interface belongs to a point-to-point link.
interface is in running state.
interface is administratively up.
IP address lengths (bytes).
IP address lengths (bytes).

# Variables

DefaultResolver is the resolver used by the package-level Lookup functions and by Dialers without a specified Resolver.
ErrClosed is the error returned by an I/O call on a network connection that has already been closed, or that is closed by another goroutine before the I/O is completed.
Various errors contained in OpError.
all routers.
all systems.
limited broadcast.
all zeros.
Well-known IPv6 addresses.
Well-known IPv6 addresses.
Well-known IPv6 addresses.
Well-known IPv6 addresses.
Well-known IPv6 addresses.
Well-known IPv6 addresses.

# Structs

No description provided by the author
A Dialer contains options for connecting to an address.
DNSConfigError represents an error reading the machine's DNS configuration.
DNSError represents a DNS lookup error.
Interface represents a mapping between network interface name and index.
IPAddr represents the address of an IP end point.
IPConn is the implementation of the [Conn] and [PacketConn] interfaces for IP network connections.
An IPNet represents an IP network.
KeepAliveConfig contains TCP keep-alive options.
ListenConfig contains options for listening to an address.
An MX represents a single DNS MX record.
An NS represents a single DNS NS record.
OpError is the error type usually returned by functions in the net package.
A ParseError is the error type of literal network address parsers.
A Resolver looks up names and numbers.
An SRV represents a single DNS SRV record.
TCPAddr represents the address of a TCP end point.
TCPConn is an implementation of the [Conn] interface for TCP network connections.
TCPListener is a TCP network listener.
UDPAddr represents the address of a UDP end point.
UDPConn is the implementation of the [Conn] and [PacketConn] interfaces for UDP network connections.
UnixAddr represents the address of a Unix domain socket end point.
UnixConn is an implementation of the [Conn] interface for connections to Unix domain sockets.
UnixListener is a Unix domain socket listener.

# Interfaces

Addr represents a network end point address.
Conn is a generic stream-oriented network connection.
An Error represents a network error.
A Listener is a generic network listener for stream-oriented protocols.
PacketConn is a generic packet-oriented network connection.

# Type aliases

Buffers contains zero or more runs of bytes to write.
No description provided by the author
A HardwareAddr represents a physical hardware address.
No description provided by the author
An IP is a single IP address, a slice of bytes.
An IPMask is a bitmask that can be used to manipulate IP addresses for IP addressing and routing.
No description provided by the author