10-Package-Management-EN.md 834 B

← Asynchronous Call | Package Management(中文) | Home →


Package Management

Alibaba Cloud SDK for Go supports two ways for package management.

dep

Execute the following command in the alibaba-cloud-sdk-go directory:

# When gopkg.lock and gopkg.toml exist, this instruction will pull the dependency package and put it into the vendor directory.
dep ensure 

go modules

Execute the following command in the alibaba-cloud-sdk-go directory:

# When go.mod and go.sum exist, the command will pull the dependent package and put it into the $GOPATH/pkg/mod directory.
go mod tidy

← Asynchronous Call | Package Management(中文) | Home →