当前位置:网站首页>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
边栏推荐
猜你喜欢
DGL中异构图的一些理解以及异构图卷积HeteroGraphConv的用法
How can non-technical departments participate in Devops?
5g NR system architecture
[dark horse morning post] Luo Yonghao responded to ridicule Oriental selection; Dong Qing's husband Mi Chunlei was executed for more than 700million; Geely officially acquired Meizu; Huawei releases M
微信核酸检测预约小程序系统毕业设计毕设(8)毕业设计论文模板
谈谈对Flink框架中容错机制及状态的一致性的理解
赛克瑞浦动力电池首台产品正式下线
The most complete is an I2C summary
C language QQ chat room small project [complete source code]
Learning notes 5 - high precision map solution
随机推荐
How can PostgreSQL CDC set a separate incremental mode, debezium snapshot. mo
Nine degrees 1480: maximum ascending subsequence sum (dynamic programming idea for the maximum value)
2022年化工自动化控制仪表考试试题及在线模拟考试
Ad20 make logo
WorkManager學習一
Learning notes 5 - high precision map solution
2022年危险化学品生产单位安全生产管理人员特种作业证考试题库模拟考试平台操作
Learning II of workmanager
How to plan the career of a programmer?
[observation] with the rise of the "independent station" model of cross-border e-commerce, how to seize the next dividend explosion era?
What is the most suitable book for programmers to engage in open source?
Node の MongoDB Driver
数组、、、
How does redis implement multiple zones?
基于昇腾AI丨爱笔智能推出银行网点数字化解决方案,实现从总部到网点的信息数字化全覆盖
The most complete is an I2C summary
5g NR system architecture
[vite] 1371 - develop vite plug-ins by hand
Singleton mode encapsulates activity management class
pytorch输出tensor张量时有省略号的解决方案(将tensor完整输出)