Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 852 Bytes

10-Package-Management-EN.md

File metadata and controls

25 lines (18 loc) · 852 Bytes

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


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(中文) | Endpoint →