Install the SDK Package
Updated at:2025-11-03
Runtime environment
Go SDK can run in go 1.3 or higher.
Install SDK
Directly download from github
Use go get to download from GitHub:
Shell
1go get github.com/baidubce/bce-sdk-go
SDK directory structure
Text
1bce-sdk-go
2 |--auth //BCE signature and authorization
3 |--bce //BCE Common basic components
4 |--http //HTTP communication module for BCE
5 |--Services //BCE Related Service Catalog
6 | |--bls //BLS service directory
7 | | |--client.go //BLS Client Entry Point
8 | | |--api //BLS-related API directory
9 | | |--fastquery.go //BLS FastQuery-related API implementation
10 | | |--index.go //BLS index-related API implementation
11 | | |--logrecord.go //BLS logrecord-related API implementation
12 | | |--logshipper.go //BLS logshipper-related API implementation
13 | | |--logstore.go //BLS logstore-related API implementation
14 | | |--logstream.go //BLS logstream-related API implementation
15 | | |--model.go //Data Models for BLS-related APIs
16 | | |--util.go //Tools for BLS-related API implementation
17 | |--sts //STS Service Catalog
18 |--util //BCE Common Tool Implementation
Uninstall SDK
To uninstall SDK, delete the downloaded source code directly.
