Installing the SDK

The following uses OBS Go SDK of the latest version as an example:

  1. Download the OBS Go SDK development package by referring to SDK Download Links.
  2. Decompress the development package to obtain folder src (SDK source code and sample code) and file README.txt (feature description file of SDK versions).
  3. On Eclipse, create a Go project, copy the folder and file obtained in the previous step to folder src of the project.
  4. Right-click the project and choose Build Project from the drop-down list, and wait until the building is complete.

    After the building, the directory structure is similar to the following:

    ├── bin

    ├── pkg

    ├── src

    -----├── examples

    -----├── main

    -----└── obs

    └── README.MD

Method 2:

go get github.com/huaweicloud/huaweicloud-sdk-go-obs/obs