This topic describes how to install the MaxCompute Go SDK.
Prerequisites
Go version 1.15 or higher is installed. For more information, see Go.
Install the Go SDK
You can install the Go SDK by using either the go mod method or the source method.
Go mod method: Add the SDK dependency to your
go.mod
file. The following code uses version 0.3.8 as an example (replace the version number with your desired one):require ( github.com/aliyun/aliyun-odps-go-sdk v0.3.8 )
Source method:
go get github.com/aliyun/aliyun-odps-go-sdk
What to do next?
After the Go SDK is installed, you need to configure your access credentials. For more information, see Configure access credentials of the Go SDK.