package
0.0.0-20130121074735-1d03baafba06
Repository: https://github.com/icattlecoder/go.git
Documentation: pkg.go.dev
# Packages
Package http provides HTTP client and server implementations.
Package mail implements parsing of mail messages.
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 addr on the network net.
DialIP connects to the remote address raddr on the network protocol netProto, which must be "ip", "ip4", or "ip6" followed by a colon and a protocol number or name.
DialTCP connects to the remote address raddr on the network net, which must be "tcp", "tcp4", or "tcp6".
DialTimeout acts like Dial but takes a timeout.
DialUDP connects to the remote address raddr on the network net, which must be "udp", "udp4", or "udp6".
DialUnix connects to the remote address raddr on the network net, which must be "unix", "unixgram" or "unixpacket".
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 network 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" or, if host contains a colon, "[host]:port".
Listen announces on the local network address laddr.
ListenIP listens for incoming IP packets addressed to the local address laddr.
ListenMulticastUDP listens for incoming multicast UDP packets addressed to the group address gaddr on ifi, which specifies the interface to join.
ListenPacket announces on the local network address laddr.
ListenTCP announces on the TCP address laddr and returns a TCP listener.
ListenUDP listens for incoming UDP packets addressed to the local address laddr.
ListenUnix announces on the Unix domain socket laddr and returns a Unix listener.
ListenUnixgram listens for incoming Unix datagram packets addressed to the local address laddr.
LookupAddr performs a reverse lookup for the given address, returning a list of names mapping to that address.
LookupCNAME returns the canonical DNS host for the given name.
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 mask, like "192.168.100.1/24" or "2001:DB8::/48", 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, or EUI-64 using one of the following formats: 01:23:45:67:89:ab 01:23:45:67:89:ab:cd:ef 01-23-45-67-89-ab 01-23-45-67-89-ab-cd-ef 0123.4567.89ab 0123.4567.89ab.cdef.
Pipe creates a synchronous, in-memory, full duplex network connection; both ends implement the Conn interface.
ResolveIPAddr parses addr as an IP address and resolves domain names to numeric addresses on the network net, which must be "ip", "ip4" or "ip6".
ResolveTCPAddr parses addr as a TCP address of the form host:port and resolves domain names or port names to numeric addresses on the network net, which must be "tcp", "tcp4" or "tcp6".
ResolveUDPAddr parses addr as a UDP address of the form host:port and resolves domain names or port names to numeric addresses on the network net, which must be "udp", "udp4" or "udp6".
ResolveUnixAddr parses addr as a Unix domain socket address.
SplitHostPort splits a network address of the form "host:port" or "[host]:port" into host and port.
# 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 up.
IP address lengths (bytes).
IP address lengths (bytes).
# Variables
No description provided by the author
all routers.
all systems.
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
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.
An MX represents a single DNS MX record.
An NS represents a single DNS NS record.
No description provided by the author
A ParseError represents a malformed text string and the type of string that was expected.
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
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 IP mask is an IP address.
No description provided by the author