当前位置:网站首页>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
边栏推荐
- QT implements JSON parsing
- [observation] with the rise of the "independent station" model of cross-border e-commerce, how to seize the next dividend explosion era?
- How do programmers live as they like?
- Who is the "conscience" domestic brand?
- 非技術部門,如何參與 DevOps?
- Shortcut keys for vscode
- Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
- Excerpt from "sword comes" (VII)
- csdn软件测试入门的测试基本流程
- Implementation of wechat applet bottom loading and pull-down refresh
猜你喜欢
随机推荐
ModuleNotFoundError: No module named ‘scrapy‘ 终极解决方式
字符串、、
微信小程序触底加载与下拉刷新的实现
Glide Mastery
DDOS攻击原理,被ddos攻击的现象
BOM//
Secteur non technique, comment participer à devops?
【SWT组件】内容滚动组件 ScrolledComposite
正则表达式
小程序框架Taro
Go语言-1-开发环境配置
跨页面通讯
beego跨域问题解决方案-亲试成功
websocket
Web3基金会「Grant计划」赋能开发者,盘点四大成功项目
flink cdc不能监听mysql日志,大家遇到过这个问题吧?
"Everyday Mathematics" serial 58: February 27
《通信软件开发与应用》课程结业报告
iframe
SAP ui5 objectpagelayout control usage sharing








