This topic describes how to add dependencies to install the Alibaba Cloud SDK for Go.

Note You must install the core library of the Alibaba Cloud SDK for Go regardless of the method that you use to install the Alibaba Cloud SDK for Go.

Prerequisites

Before you install and use the Alibaba Cloud SDK for Go, an Alibaba Cloud account is created and an AccessKey pair is created. For more information, see Create an AccessKey pair.

(Recommended) Use Glide

To install the Alibaba Cloud SDK for Go, run the following command:
glide get github.com/aliyun/alibaba-cloud-sdk-go

Use govendor

To install the Alibaba Cloud SDK for Go, run the following command:
go get -u github.com/aliyun/alibaba-cloud-sdk-go/sdk

After the Alibaba Cloud SDK for Go is installed, you can use OpenAPI Explorer to generate the sample code of API operations for the SDK, and apply the sample code in your projects.

Core library of the Alibaba Cloud SDK for Go on GitHub

Core library of the Alibaba Cloud SDK for Go