Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 2.46 KB

installation.md

File metadata and controls

36 lines (21 loc) · 2.46 KB

Installation Guide

Requirement

This SDK requires Go 1.6 and higher vendor feature, the dependencies this project uses are included in the vendor directory. We use govendor to manage project dependences.

Notice: You can also use Go 1.5 with the GO15VENDOREXPERIMENT=1.

Install from source code

Use go get to download this SDK from GitHub:

$ go get -u github.com/yunify/qingcloud-sdk-go

You can also download a specified version of zipped source code in the repository releases page. The zipped source code only contains golang source code without unit test files.

For example: qingcloud-sdk-go-source-v0.7.1.zip

Install from binary release

After Go 1.7, there's a new feature called Binary-Only Package. It allows distributing packages in binary form without including the source code used for compiling the package. For more information about Binary-Only Package, please read GoLang Package Build to know how to use that.

We provide Linux, macOS and Windows binary packages along with a header files. A header file only contains three lines of content, "//go:binary-only-package" is the first line, the second line is blank, and the second is the package name. There's one header file named "binary.go" for each golang package.

You can download a specified version of zipped binary release in the repository releases page.

Notice: We didn't provide 386 version binary packages, since there's almost no one using a 386 machine.

Examples: