All Products
Search
Document Center

Tablestore:Install Tablestore SDK for Go

Last Updated:Jun 28, 2024

After you install Tablestore SDK for Go, you can call the operations of the SDK when you write code. This topic describes how to install Tablestore SDK for Go.

Prerequisites

  • Go 1.4 or later is installed. For more information about the download path, see Go download path.

  • Go development tools, such as GoLand and Visual Studio Code, are installed. Go plug-ins are required for Visual Studio Code.

Installation method

Run the go mod init <DIRNAME> command in the project directory to generate the go.mo d file. Then, run the following command to install Tablestore SDK for Go:

Note

<DIRNAME> indicates the project directory path. Replace <DIRNAME> with the actual project directory path.

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

Sample programs

Tablestore SDK for Go provides various sample programs that you can refer to or use. You can decompress the downloaded SDK package and view the sample programs in the sample folder. For more information about the download path, see Download address of Tablestore SDK for Go on GitHub.