Help Center/
Content Moderation/
SDK Reference/
Using the Go SDK/
Preparing a Go Development Environment
Updated on 2022-03-28 GMT+08:00
Preparing a Go Development Environment
To use the Go SDK of Image Recognition, you need to configure the Go development environment. If the Go development environment has been installed, skip this section.
- Download Go 1.14 or a later version from the Go official website.
- 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 Visual Studio Code from its official website and install it.
- 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