Add the MaxCompute Go SDK to your project to interact with MaxCompute from Go applications.
Prerequisites
Before you begin, ensure that you have:
Go 1.15 or later. To install Go, see Go installation guide
Install the Go SDK
Two installation methods are available. Use go mod for new projects or projects that already use Go modules. Use go get for quick installation or when working outside a module.
go mod
Add the SDK as a dependency in your go.mod file:
require (
github.com/aliyun/aliyun-odps-go-sdk v0.3.8
)Replace v0.3.8 with the latest version.
go get
Run the following command to install the latest version directly:
go get github.com/aliyun/aliyun-odps-go-sdkWhat's next
Configure access credentials — set up your AccessKey ID and AccessKey Secret to authenticate SDK requests