You can use any linux/amd64-compatible package in the App Engine standard
environment. These instructions assume you are using the
go get command to get
the packages directly from supported repositories, such as GitHub, Bitbucket,
Declaring and managing dependencies
When deploying your app to App Engine, the Go 1.11 runtime automatically installs all dependencies by taking one of the following approaches:
- If your application is in a directory on your
GOPATH, App Engine analyzes, copies, and uploads your imports from
GOPATH. This approach supports vendor directories.
All imports must be absolute imports. For example, use:
Downloading required packages
go get command to download dependencies.
For example, to depend on the https://github.com/gorilla/mux URL router:
Download the package to your development environment using the following command:
go get github.com/gorilla/mux
Add the package to your list of imports: