You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Go
Installing the Go SDK
Copy page
Download PDF
Installing the Go SDK
This article provides the download link and installation instructions for the TOS Go SDK.​
Prerequisites​
Before installing the SDK, you must first install Golang version 1.13 or later. You can visit the Golang official website to download the installation package.​
After installation is complete, you can use the go version command to view the version information.​
SDK Download Link​
Installation Method​
The TOS Go SDK is managed using go mod. If go mod has not been initialized in your local project, you can run the following command to initialize it.​
​
go mod init example​
​
After initializing go mod locally, run the following command to install the latest version of the SDK.​
​
go get -u github.com/volcengine/ve-tos-golang-sdk/v2​
​
After installation is complete, run the following command to check the SDK version.​
​
package main​
​
import (​
"fmt"​
​
"github.com/volcengine/ve-tos-golang-sdk/v2/tos"​
)​
​
func main() {​
fmt.Println("TOS GO SDK Version: ", tos.Version)​
}​
​
​
Last updated: 2025.09.19 17:30:18