All Products
Search
Document Center

MaxCompute:Install the Go SDK

Last Updated:Mar 26, 2026

Add the MaxCompute Go SDK to your project to interact with MaxCompute from Go applications.

Prerequisites

Before you begin, ensure that you have:

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-sdk

What's next