Install the Go SDK

更新时间:
复制 MD 格式

This topic describes how to install the MaxCompute Go SDK.

Prerequisites

Before you install the Go SDK, ensure that a Go environment of version 1.15 or later is installed. For more information, see Go.

Install the Go SDK

You can install the SDK using one of the following methods:

  • go mod method: Add the following SDK dependency to the go.mod file. This example uses version 0.3.8. Replace the version number with the version that you require.

    require (
        github.com/aliyun/aliyun-odps-go-sdk v0.3.8
    )
  • Source code method:

    go get github.com/aliyun/aliyun-odps-go-sdk

Next step

After you install the Go SDK, you need to configure access credentials. For more information, see Configure access credentials.