当前位置:网站首页>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
边栏推荐
- 01.Go语言介绍
- Electrical data | IEEE118 (including wind and solar energy)
- 037 PHP login, registration, message, personal Center Design
- 普通人下场全球贸易,新一轮结构性机会浮出水面
- Leetcode skimming questions_ Verify palindrome string II
- 3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
- False breakthroughs in the trend of London Silver
- leetcode3、实现 strStr()
- [the most complete in the whole network] |mysql explain full interpretation
- Leetcode sum of two numbers
猜你喜欢
C web page open WinForm exe
XSS learning XSS lab problem solution
3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
Open source | Ctrip ticket BDD UI testing framework flybirds
【Flask】官方教程(Tutorial)-part2:蓝图-视图、模板、静态文件
Redis-列表
[flask] official tutorial -part3: blog blueprint, project installability
1. Introduction to basic functions of power query
500 lines of code to understand the principle of mecached cache client driver
Initialize MySQL database when docker container starts
随机推荐
ClickOnce 不支持请求执行级别“requireAdministrator”
01.Go语言介绍
【全网最全】 |MySQL EXPLAIN 完全解读
Leetcode skimming questions_ Sum of squares
3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
Huawei converged VLAN principle and configuration
2022 Guangxi Autonomous Region secondary vocational group "Cyberspace Security" competition and its analysis (super detailed)
[the most complete in the whole network] |mysql explain full interpretation
CocoaPods could not find compatible versions for pod 'Firebase/CoreOnly'
Basic operations of database and table ----- delete data table
UE4 unreal engine, editor basic application, usage skills (IV)
PHP error what is an error?
【Flask】静态文件与模板渲染
Leetcode skimming questions_ Verify palindrome string II
[flask] official tutorial -part3: blog blueprint, project installability
MUX VLAN configuration
MATLB|实时机会约束决策及其在电力系统中的应用
Leetcode 208. 实现 Trie (前缀树)
Leetcode1961. Check whether the string is an array prefix
Paddle框架:PaddleNLP概述【飞桨自然语言处理开发库】