net
moduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
Go Networking
This repository holds supplementary Go networking packages.
Report Issues / Send Patches
This repository uses Gerrit for code changes. To learn how to submit changes tothis repository, seehttps://go.dev/doc/contribute.
The git repository ishttps://go.googlesource.com/net.
The main issue tracker for the net repository is located athttps://go.dev/issues. Prefix your issue with "x/net:" in thesubject line, so it is easy to find.
Directories¶
| Path | Synopsis |
|---|---|
Package bpf implements marshaling and unmarshaling of programs for the Berkeley Packet Filter virtual machine, and provides a Go implementation of the virtual machine. | Package bpf implements marshaling and unmarshaling of programs for the Berkeley Packet Filter virtual machine, and provides a Go implementation of the virtual machine. |
Package context has been superseded by the standard library context package. | Package context has been superseded by the standard library context package. |
ctxhttp Package ctxhttp provides helper functions for performing context-aware HTTP requests. | Package ctxhttp provides helper functions for performing context-aware HTTP requests. |
Package dict implements the Dictionary Server Protocol as defined in RFC 2229. | Package dict implements the Dictionary Server Protocol as defined in RFC 2229. |
dns | |
dnsmessage Package dnsmessage provides a mostly RFC 1035 compliant implementation of DNS message packing and unpacking. | Package dnsmessage provides a mostly RFC 1035 compliant implementation of DNS message packing and unpacking. |
Package html implements an HTML5-compliant tokenizer and parser. | Package html implements an HTML5-compliant tokenizer and parser. |
atom Package atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as "p" and "id". | Package atom provides integer codes (also known as atoms) for a fixed set of frequently occurring HTML strings: tag names and attribute keys such as "p" and "id". |
charset Package charset provides common text encodings for HTML documents. | Package charset provides common text encodings for HTML documents. |
http | |
httpguts Package httpguts provides functions implementing various details of the HTTP specification. | Package httpguts provides functions implementing various details of the HTTP specification. |
httpproxy Package httpproxy provides support for HTTP proxy determination based on environment variables, as provided by net/http's ProxyFromEnvironment function. | Package httpproxy provides support for HTTP proxy determination based on environment variables, as provided by net/http's ProxyFromEnvironment function. |
Package http2 implements the HTTP/2 protocol. | Package http2 implements the HTTP/2 protocol. |
h2c Package h2c implements the unencrypted "h2c" form of HTTP/2. | Package h2c implements the unencrypted "h2c" form of HTTP/2. |
h2icommand The h2i command is an interactive HTTP/2 console. | The h2i command is an interactive HTTP/2 console. |
hpack Package hpack implements HPACK, a compression format for efficiently representing HTTP header fields in the context of HTTP/2. | Package hpack implements HPACK, a compression format for efficiently representing HTTP header fields in the context of HTTP/2. |
h2demomodule | |
Package icmp provides basic functions for the manipulation of messages used in the Internet Control Message Protocols, ICMPv4 and ICMPv6. | Package icmp provides basic functions for the manipulation of messages used in the Internet Control Message Protocols, ICMPv4 and ICMPv6. |
Package idna implements IDNA2008 using the compatibility processing defined by UTS (Unicode Technical Standard) #46, which defines a standard to deal with the transition from IDNA2003. | Package idna implements IDNA2008 using the compatibility processing defined by UTS (Unicode Technical Standard) #46, which defines a standard to deal with the transition from IDNA2003. |
internal | |
gate Package gate contains an alternative condition variable. | Package gate contains an alternative condition variable. |
http3 Package http3 implements the HTTP/3 protocol. | Package http3 implements the HTTP/3 protocol. |
httpsfv Package httpsfv provides functionality for dealing with HTTP Structured Field Values. | Package httpsfv provides functionality for dealing with HTTP Structured Field Values. |
iana Package iana provides protocol number resources managed by the Internet Assigned Numbers Authority (IANA). | Package iana provides protocol number resources managed by the Internet Assigned Numbers Authority (IANA). |
quic/cmd/interopcommand The interop command is the client and server used by QUIC interoperability tests. | The interop command is the client and server used by QUIC interoperability tests. |
quic/quicwire Package quicwire encodes and decode QUIC/HTTP3 wire encoding types, particularly variable-length integers. | Package quicwire encodes and decode QUIC/HTTP3 wire encoding types, particularly variable-length integers. |
socket Package socket provides a portable interface for socket system calls. | Package socket provides a portable interface for socket system calls. |
socks Package socks provides a SOCKS version 5 client implementation. | Package socks provides a SOCKS version 5 client implementation. |
sockstest Package sockstest provides utilities for SOCKS testing. | Package sockstest provides utilities for SOCKS testing. |
testcert Package testcert contains a test-only localhost certificate. | Package testcert contains a test-only localhost certificate. |
timeseries Package timeseries implements a time series structure for stats collection. | Package timeseries implements a time series structure for stats collection. |
Package ipv4 implements IP-level socket options for the Internet Protocol version 4. | Package ipv4 implements IP-level socket options for the Internet Protocol version 4. |
Package ipv6 implements IP-level socket options for the Internet Protocol version 6. | Package ipv6 implements IP-level socket options for the Internet Protocol version 6. |
Package nettest provides utilities for network testing. | Package nettest provides utilities for network testing. |
Package netutil provides network utility functions, complementing the more common ones in the net package. | Package netutil provides network utility functions, complementing the more common ones in the net package. |
Package proxy provides support for a variety of protocols to proxy network data. | Package proxy provides support for a variety of protocols to proxy network data. |
Package publicsuffix provides a public suffix list based on data from https://publicsuffix.org/ | Package publicsuffix provides a public suffix list based on data from https://publicsuffix.org/ |
Package quic implements the QUIC protocol. | Package quic implements the QUIC protocol. |
qlog Package qlog serializes qlog events. | Package qlog serializes qlog events. |
Package route provides basic functions for the manipulation of packet routing facilities on BSD variants. | Package route provides basic functions for the manipulation of packet routing facilities on BSD variants. |
Package trace implements tracing of requests and long-lived objects. | Package trace implements tracing of requests and long-lived objects. |
Package webdav provides a WebDAV server implementation. | Package webdav provides a WebDAV server implementation. |
internal/xml Package xml implements a simple XML 1.0 parser that understands XML name spaces. | Package xml implements a simple XML 1.0 parser that understands XML name spaces. |
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455. | Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455. |
Package xsrftoken provides methods for generating and validating secure XSRF tokens. | Package xsrftoken provides methods for generating and validating secure XSRF tokens. |