当前位置:网站首页>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语言介绍
- [the most complete in the whole network] |mysql explain full interpretation
- Kubernetes stateless application expansion and contraction capacity
- yii中console方法调用,yii console定时任务
- Leetcode skimming questions_ Invert vowels in a string
- 插卡4G工业路由器充电桩智能柜专网视频监控4G转以太网转WiFi有线网速测试 软硬件定制
- module ‘tensorflow. contrib. data‘ has no attribute ‘dataset
- Huawei Hrbrid interface and VLAN division based on IP
- ClickOnce does not support request execution level 'requireAdministrator'
- [flask] static file and template rendering
猜你喜欢
国家级非遗传承人高清旺《四大美人》皮影数字藏品惊艳亮相!
NLP fourth paradigm: overview of prompt [pre train, prompt, predict] [Liu Pengfei]
Folio.ink 免费、快速、易用的图片分享工具
Redis-字符串类型
Basic operations of database and table ----- delete data table
A Cooperative Approach to Particle Swarm Optimization
Basic operations of databases and tables ----- non empty constraints
National intangible cultural heritage inheritor HD Wang's shadow digital collection of "Four Beauties" made an amazing debut!
Leetcode skimming questions_ Sum of squares
3D vision - 4 Getting started with gesture recognition - using mediapipe includes single frame and real time video
随机推荐
How to see the K-line chart of gold price trend?
Leetcode skimming questions_ Invert vowels in a string
Leetcode 剑指 Offer 59 - II. 队列的最大值
Basic process and testing idea of interface automation
leetcode3、实现 strStr()
Threedposetracker project resolution
Accelerating spark data access with alluxio in kubernetes
Unity | two ways to realize facial drive
剑指 Offer 38. 字符串的排列
General operation method of spot Silver
Maya hollowed out modeling
Luo Gu P1170 Bugs Bunny and Hunter
Basic operations of databases and tables ----- primary key constraints
037 PHP login, registration, message, personal Center Design
Leetcode skimming questions_ Sum of squares
网易智企逆势进场,游戏工业化有了新可能
ctf. Show PHP feature (89~110)
3D model format summary
一图看懂!为什么学校教了你Coding但还是不会的原因...
[flask] static file and template rendering