当前位置:网站首页>Go language-1-development environment configuration
Go language-1-development environment configuration
2022-07-05 10:42:00 【hahyyy】
Catalog
Linux Platform installation Go
Use Linux, You can quickly install in the following ways
Windows Platform installation Go
Add the installation path to the environment variable
download Vim Configuration tool
Get into lexVim Catalog , download go ide The required binaries
Windows platform GoLand install
Windows platform APIPOST install
Go install
Go There are many ways to install , such as Go Source code installation 、Go Standard package installation 、 Third party tools (yum、apt-get etc. ) install
Two environment variables :
- GOROOT:GOROOT Namely Go Installation path for
- GOPATH:GOPATH It is used as the storage destination and import Search path at package time ( In fact, it is also a working directory )
Linux Platform installation Go
Use Linux, You can quickly install in the following ways

Set the environment variable
stay ~/.bashrc Add GOPATH Variable
vim ~/.bashrc

After adding --> source ~/.bashrc
Check

Mac Platform installation Go

Windows Platform installation Go
download
Download path :https://golang.google.cn/dl/go1.18.3.windows-amd64.msi
install msi file
Add the installation path to the environment variable
Such as :go The installation to C:\Program Files\Go Catalog , Then add the environment variable GOPATH: C:\Program Files\Go\
And will %GOPATH%\bin Add to PATH
Check
IDE install
Vim yes Linux The most basic tool developed under , You can configure a Vim IDE. We can use open source installation tools , Here, you can directly use this tool to realize one click configuration .
download Vim Configuration tool
$ git clone https://github.com/lexkong/lexVim
Get into lexVim Catalog , download go ide The required binaries
$ cd lexVim
$ git clone https://github.com/lexkong/vim-go-ide-bin
Start the installation script
$ ./start_vim.sh
Windows platform GoLand install
Download address :https://www.jetbrains.com/go/
You can try 30 Days or self cracking
Test tool installation
Linux platform Curl Tools
install curl
Usage method
https://www.ruanyifeng.com/blog/2011/09/curl.html
https://www.ruanyifeng.com/blog/2019/09/curl-reference.html
Windows platform APIPOST install
Download address :https://www.apipost.cn/?utm_source=10039&bd_vid=10756414022759907776
There is no special need, just install it in the next step
边栏推荐
- C#实现获取DevExpress中GridView表格进行过滤或排序后的数据
- Solution of ellipsis when pytorch outputs tensor (output tensor completely)
- C语言实现QQ聊天室小项目 [完整源码]
- Pseudo class elements -- before and after
- TSQL–标示列、GUID 、序列
- Learning notes 5 - high precision map solution
- PHP solves the problems of cache avalanche, cache penetration and cache breakdown of redis
- 微信核酸检测预约小程序系统毕业设计毕设(8)毕业设计论文模板
- 手机厂商“互卷”之年:“机海战术”失灵,“慢节奏”打法崛起
- [vite] 1371 - develop vite plug-ins by hand
猜你喜欢

在C# 中实现上升沿,并模仿PLC环境验证 If 语句使用上升沿和不使用上升沿的不同

谈谈对Flink框架中容错机制及状态的一致性的理解

Idea create a new sprintboot project

In the year of "mutual entanglement" of mobile phone manufacturers, the "machine sea tactics" failed, and the "slow pace" playing method rose

2022年流动式起重机司机考试题库及模拟考试

What is the most suitable book for programmers to engage in open source?

基于昇腾AI丨以萨技术推出视频图像全目标结构化解决方案,达到业界领先水平

微信核酸检测预约小程序系统毕业设计毕设(6)开题答辩PPT

2022年危险化学品经营单位主要负责人特种作业证考试题库及答案

爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架
随机推荐
C language QQ chat room small project [complete source code]
[JS] array dimensionality reduction
微信核酸检测预约小程序系统毕业设计毕设(6)开题答辩PPT
C语言活期储蓄账户管理系统
Comparative learning in the period of "arms race"
ModuleNotFoundError: No module named ‘scrapy‘ 终极解决方式
流程控制、
【JS】提取字符串中的分数,汇总后算出平均分,并与每个分数比较,输出
Learning note 4 -- Key Technologies of high-precision map (Part 2)
NAS与SAN
dsPIC33EP 时钟初始化程序
Activity jump encapsulation
爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架
vite//
Completion report of communication software development and Application
How did automated specification inspection software develop?
Workmanager Learning one
想请教一下,十大券商有哪些?在线开户是安全么?
QT implements JSON parsing
Activity enter exit animation