当前位置:网站首页>Go language development environment setup +goland configuration under the latest Windows
Go language development environment setup +goland configuration under the latest Windows
2022-06-24 09:57:00 【BigChen_ up】
One 、 download Go Language development package
You can Go Language website (https://golang.google.cn/dl/) download Windows Under the system Go Language development package , As shown in the figure below .
Here we download 64 Bit development package , If the computer is 32 Bit system , You need to download 32 Bit development package , Scroll down in the page shown above to find 32 Download address of bit development package , As shown in the figure below .
Be careful : download Windows Version of Go When developing language packages, try to choose MSI Format , Because it can be installed directly into the system , No additional operations are required .
Two 、 install Go Language development package
Double click to download OK Go Language development kit can start the installer , As shown in the figure below , This is a Go User license agreement for language , Don't worry about it , Check... Directly “I accept …” And then click “Next” that will do .

stay Windows Under the system Go The language development package will be installed to by default C Discoid Go Under the table of contents , It is recommended to install in this directory , It is convenient to use . Of course , You can also choose another installation directory , Click after confirmation “Next”, As shown in the figure below :
Go There are no other options to be set for the installation of language development package , Click on “Install” You can start the installation , As shown in the figure below :
Wait for the program to complete installation , And then click “Finish” Quit Setup .

After installation , Some directories and files will be generated under the installation directory we set , As shown in the figure below :
3、 ... and 、 Set the environment variable
After the development package is installed , We also need to configure GOPATH environment variable , Can be used later Go Language development .GOPATH It's a path , It is used to store the code package needed in development .
Right click on the desktop or explorer “ This computer ”( perhaps “ My computer ”)→“ attribute ”→“ Advanced system setup ”→“ environment variable ”, As shown in the figure below .
Find... In the pop-up menu GOPATH The corresponding options can be modified by clicking Edit , If not, you can choose to create a new one , And fill in the variable name as GOPATH, The variable value can be set to any directory ( Try to choose an empty directory ), for example D:\Go.

Four 、 Development tools set environment variables intelligently
This tutorial uses GoLand development tool ,Goland Download below :
Goland Download and install
You can go from Goland Download the corresponding version of Goland Installation package
Official website download address :https://www.jetbrains.com/go/download/other.html
- To configure GOROOT open GoLand Development tools Click :File/Settings/GOROOT Pictured :

- To configure GOPATH. open GoLand Development tools Click :File/Settings/GOPATH Pictured :

After the configuration is completed, you can run the code , stay D:\goProject Create a new folder test.go The documents are as follows :
package main
import "fmt"
func main() {
fmt.Println("hello world")
}

边栏推荐
- Wechat applet learning to achieve list rendering and conditional rendering
- El table Click to add row style
- Servlet快速筑基
- 【自定义Endpoint 及实现原理】
- Oracle viewing data file header SCN information
- Ggplot2 color setting summary
- SSH Remote Password free login
- Five heart matchmaker
- 416-二叉树(前中后序遍历—迭代法)
- Detailed explanation of ThinkPHP 5.0 Model Association
猜你喜欢

413-二叉树基础

411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)

nVisual数字基础设施运营管理软件平台

二叉树第一部分

2021-08-17

Summary of medical image open source datasets (II)

Nvisual digital infrastructure operation management software platform

How to make social media the driving force of cross-border e-commerce? This independent station tool cannot be missed!

Impdp leading schema message ora-31625 exception handling

Grpc local test joint debugging tool bloomrpc
随机推荐
Use of vim
Dragging El table sortablejs
二叉树第一部分
蜜罐2款hfish,ehoney
Servlet fast foundation building
深度学习论文阅读目标检测篇(七)中英对照版:YOLOv4《Optimal Speed and Accuracy of Object Detection》
2021-08-17
indexedDB本地存储,首页优化
如何规范化数据中心基础设施管理流程
ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
Latex formula and table recognition
Five heart matchmaker
Turn to: CEO of Samsung Electronics: all decisions should start from recognizing yourself
Threejs MMD model loading + contour loading + animation loading + Audio loading + camera animation loading +ammojs loading gltf model loading +gltf reflection adjustment
Analysis of 43 cases of MATLAB neural network: Chapter 32 time series prediction of wavelet neural network - short-term traffic flow prediction
How to locate lock waiting in Dameng database
Is there a reliable and low commission futures account opening channel in China? Is it safe to open an account online?
CICFlowMeter源码分析以及为满足需求而进行的修改
Open Oracle server under Linux to allow remote connection
LeetCode: 377. Combined sum IV