Updated on 2022-02-22 GMT+08:00
Preparing a Go Development Environment
To use the Go SDK of ImageSearch, you need to configure the Go development environment. If the Go development environment has been installed, skip this section.
- Download the Go SDK of the required version from the golang official website and install it. The SDK supports go 1.14 version or later.
- Install the downloaded Go in a specified path, for example, D:\develop\go.
- Right-click Computer, choose Properties > Advanced System Settings > Environment Variables, and perform the following operations:
- Create system variable GOROOT whose value is the Go installation path. Add environment variable GOPATH, which indicates the directory where the Go project is located.
- Append ;%GOROOT%\bin (path of the Go compiler) to the PATH variable.
- Append ;%GOROOT%\lib (path of the Go compiler) to the CLASSPATH variable.
- Download the vs code of the operating system from the vs code official website.
- Install the Go and Go Critic plug-ins.
Parent topic: Using the Go SDK
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot