Go 1.11 has reached end of support
and will be deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Go 1.11
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Go
1.11 applications will continue to run and receive traffic after their
deprecation date. We
recommend that you migrate to the latest supported version of Go.
This package is only required in the classic App Engine environment.
Applications running only in App Engine "flexible environment" should
use the standard library's net package.
Dial connects to the address addr on the network protocol.
The address format is host:port, where host may be a hostname or an IP address.
Known protocols are "tcp" and "udp".
The returned connection satisfies net.Conn, and is valid while ctx is valid;
if the connection is to be used after ctx becomes invalid, invoke SetContext
with the new context.
SetContext sets the context that is used by this Conn.
It is usually used only when using a Conn that was created in a different context,
such as when a connection is created during a warmup request but used while
servicing a user request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["Package socket facilitates outbound network socket usage within the classic App Engine environment, while the flexible environment should utilize the standard library's net package instead."],["The `LookupIP` function resolves a given host's IP addresses."],["The `Conn` type represents a socket connection, implementing the `net.Conn` interface, and enabling operations like `KeepAlive` and `SetContext`."],["`Dial` and `DialTimeout` functions enable connecting to a specified address over a given network protocol, with `DialTimeout` adding support for setting a timeout period for the connection."],["`KeepAlive` is used on a connection to prevent it from closing due to inactivity."]]],[]]