当前位置:网站首页>02. Go language development environment configuration
02. Go language development environment configuration
2022-07-06 01:39:00 【[email protected]】
Catalog
1.1 Linux Platform installation Go
1.1.1 Use Linux, You can quickly install in the following ways .
1.1.2 Set the environment variable
1.1.3 Check if the installation is successful
1.2.2 Add the installation path to the environment variable
1.2.3 Check go stay windows Is the installation successful
1. Go install
1.1 Linux Platform installation Go
1.1.1 Use Linux, You can quickly install in the following ways .
$ wget https://golang.google.cn/dl/go1.18.3.linux-amd64.tar.gz
$ tar -xzvf go1.18.3.linux-amd64.tar.gz
$ mv go /usr/local/
#####################################################
1.1.2 Set the environment variable
# The installation directory
export GOROOT=/usr/local/go
# Code directory
export GOPATH=~/code export
PATH=$PATH:$GOPATH:$GOROOT/bin
1.1.3 Check if the installation is successful
Input go version see go Version number of
If appear go Version number of , shows go Installation successful
[[email protected] lianxi]# go version
go version go1.18.3 linux/amd64
[[email protected] lianxi]#
#####################################################
1.2 windows install go
1.2.1 download
Download path :https://golang.google.cn/dl/go1.18.3.windows-amd64.msi
Download it and install it directly .msi Just file
#####################################################
1.2.2 Add the installation path to the environment variable
Example : I will go Installed in : E:\go
Enter the configuration of environment variables
Both user variables and environment variables can ,( Anyway, it's your own machine )
newly build GOROOT Variable , Variable value is go The installation path
newly build GOPATH Variable , This variable is used to store go The path to the directory of the code (go_code It was built by myself )
Then in the... Of the system variable path Add these two items to the variable
#####################################################
1.2.3 Check go stay windows Is the installation successful
If the version number can be displayed successfully, the installation is successful
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060130187805.html
边栏推荐
- Leetcode sword finger offer 59 - ii Maximum value of queue
- Unity | two ways to realize facial drive
- Unity VR resource flash surface in scene
- [Jiudu OJ 09] two points to find student information
- 【SSRF-01】服务器端请求伪造漏洞原理及利用实例
- [flask] official tutorial -part3: blog blueprint, project installability
- 晶振是如何起振的?
- ctf. Show PHP feature (89~110)
- About error 2003 (HY000): can't connect to MySQL server on 'localhost' (10061)
- You are using pip version 21.1.1; however, version 22.0.3 is available. You should consider upgradin
猜你喜欢
干货!通过软硬件协同设计加速稀疏神经网络
How does the crystal oscillator vibrate?
Redis-列表
Poj2315 football games
【已解决】如何生成漂亮的静态文档说明页
Basic operations of database and table ----- set the fields of the table to be automatically added
Initialize MySQL database when docker container starts
TrueType字体文件提取关键信息
一圖看懂!為什麼學校教了你Coding但還是不會的原因...
Basic operations of databases and tables ----- default constraints
随机推荐
一圖看懂!為什麼學校教了你Coding但還是不會的原因...
MATLB|实时机会约束决策及其在电力系统中的应用
MUX VLAN configuration
【Flask】获取请求信息、重定向、错误处理
Leetcode sum of two numbers
UE4 unreal engine, editor basic application, usage skills (IV)
阿裏測開面試題
Leetcode1961. Check whether the string is an array prefix
LeetCode 322. Change exchange (dynamic planning)
Paddle framework: paddlenlp overview [propeller natural language processing development library]
Accelerating spark data access with alluxio in kubernetes
Basic operations of databases and tables ----- non empty constraints
PHP error what is an error?
[技术发展-28]:信息通信网大全、新的技术形态、信息通信行业高质量发展概览
selenium 等待方式
Paddle框架:PaddleNLP概述【飛槳自然語言處理開發庫】
D22:indeterminate equation (indefinite equation, translation + problem solution)
How does Huawei enable debug and how to make an image port
[flask] response, session and message flashing
Electrical data | IEEE118 (including wind and solar energy)