You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Go SDK
Install TLS SDK for Go
Copy page
Download PDF
Install TLS SDK for Go
Before you use Torch Log Service (TLS) SDK for Go to perform operations, install the SDK. This topic describes how to install TLS SDK for Go.​
Before you begin​
  • Create and get a Volcano Engine AccessKey pair.​
  • The AccessKey pair has the permissions to access all API actions. We recommend that you use an IAM user to call API actions or perform routine O&M. Before you use an IAM user, use a Volcano Engine account to grant the IAM user the permissions to operate TLS resources.​
Preparing a development environment​
To download and install the Go development environment, visit the Go official website.​
  • After you install the environment, create the GOPATH environment variable and set it to point to your code directory. For more information on GOPATH, run the go help gopath command.​
  • TLS SDK for Go supports Go 1.14 and later. Run the go version command to view your Go version.​
Installing TLS SDK for Go​
  1. Download TLS SDK for Go.​
  • ​
    go get -u github.com/volcengine/volc-sdk-golang​
    ​
tip​
For Go 1.16 and later, we recommend that you run the go install command to download TLS SDK for Go.​
  1. Load TLS SDK for Go.​
  • ​
    import (​
    sdk "github.com/volcengine/volc-sdk-golang/service/tls"​
    "github.com/volcengine/volc-sdk-golang/service/tls/pb"​
    )​
    ​
​
Last updated: 2025.10.11 16:44:06