当前位置:网站首页>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")
}

边栏推荐
- ssh远程免密登录
- el-table点击添加行样式
- 《MATLAB 神经网络43个案例分析》:第32章 小波神经网络的时间序列预测——短时交通流量预测
- 文献调研报告
- 算法--找到和最大的长度为 K 的子序列(Kotlin)
- impdp导schema报ORA-31625异常处理
- 十大证券公司哪个佣金最低,最安全可靠?有知道的吗
- 415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
- SQL statistics of users logged in for N consecutive days
- 20、 Processor scheduling (RR time slice rotation, mlfq multi-level feedback queue, CFS fully fair scheduler, priority reversal; multiprocessor scheduling)
猜你喜欢

文献调研报告

About thinkphp5, use the model save() to update the data prompt method not exist:think\db\query- & gt; Error reporting solution

居家办公如何管理数据中心网络基础设施?

队列Queue

Geogebra instance clock

Ora-28000 error after upgrading Oracle 12C to 19C

《MATLAB 神经网络43个案例分析》:第32章 小波神经网络的时间序列预测——短时交通流量预测

Handling method of Oracle data file header SCN inconsistency

编程题(持续更新)

IDEA 无法保存设置 源根 D:XXXX在模块XXX中重复
随机推荐
port 22: Connection refused
编程题(持续更新)
PHP file lock
Array seamless scrolling demo
Oracle 12c升级至19c后ORA-28000错误
js代理模式
如何提高网络基础设施排障效率,告别数据断档?
Oracle viewing data file header SCN information
Queue queue
《MATLAB 神经网络43个案例分析》:第32章 小波神经网络的时间序列预测——短时交通流量预测
CICFlowMeter源码分析以及为满足需求而进行的修改
生产者/消费者模型
R 椭圆随机点产生并画图
Oracle数据库EXPDP只导出表的方法
Oracle的tnsnames.ora文件配置
5 minutes, excellent customer service chat handling skills
Summary of medical image open source datasets (II)
Open Oracle server under Linux to allow remote connection
Symbol.iterator 迭代器
414-二叉树的递归遍历