Before you use the Go SDK to access Simple Log Service, you must install the SDK in your development environment.
Prerequisites
-
Simple Log Service is activated. Activate Simple Log Service.
-
Go is installed. For more information, see Install Go.
Install or upgrade the SDK
Run the following command as an administrator to install or upgrade the Go SDK:
go get -u github.com/aliyun/aliyun-log-go-sdk
Note
No output is displayed during installation. Wait for the process to complete. If the installation times out, run the command again.
If the command completes without errors, the Go SDK is installed.
What to do next
After you install the SDK, you must configure access credentials.
该文章对您有帮助吗?