Downloading and Installing OBS SDK for Go
This topic provides the download links and installation methods of OBS SDK for Go.
Installing OBS SDK for Go
You can use the methods listed in Table 1 to install OBS SDK for Go.
Method 1: Downloading a Go SDK and Using GoLand to Compile It
This procedure uses the latest version as an example:
- Download the SDK package.
- Decompress the package to obtain the following files: obs (the SDK source code), main, examples (the sample code), and README.MD (the feature description file of SDK versions).
- Use GoLand to create a Go project and copy the obs, examples, and main folders to the src folder of your Go project.
- Right-click the Go project and choose Build Project from the drop-down list, and wait until the building is complete.
After the building is complete, you can get a directory structure similar to the following:
├── bin
├── pkg
├── src
-----├── examples
-----├── main
-----└── obs
└── README.MD
Method 2: Running the go get Command
1
|
go get github.com/huaweicloud/huaweicloud-sdk-go-obs/obs |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.