当前位置:网站首页>【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
【愚公系列】2022年7月 Go教学课程 002-Go语言环境安装
2022-07-03 20:22:00 【InfoQ】
一、Go语言环境安装
- SDK工具包安装
- VSCode安装
- 环境变量配置


go version #输出版本信息
go env #环境信息

二、第一个Go程序

1.命令行运行
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
go run test.go

go build test.go ./test.exe
三、Go语言多版本控制
gvm install go1.17.6
gvm use go1.17.6
总结

边栏推荐
- An old programmer gave it to college students
- Shortest path problem of graph theory (acwing template)
- Producer consumer mode (multithreading, use of shared resources)
- Interval product of zhinai sauce (prefix product + inverse element)
- thrift go
- How to modify the network IP addresses of mobile phones and computers?
- 【c】 Digital bomb
- 2.1 use of variables
- 浅议.NET遗留应用改造
- 11-grom-v2-05-initialization
猜你喜欢

2.7 format output of values

How to do Taobao full screen rotation code? Taobao rotation tmall full screen rotation code

Test changes in Devops mode -- learning and thinking

2022 high voltage electrician examination and high voltage electrician reexamination examination

jvm jni 及 pvm pybind11 大批量数据传输及优化

Network security Kali penetration learning how to get started with web penetration how to scan based on nmap

Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper

The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%

Popularize the basics of IP routing

How can the outside world get values when using nodejs to link MySQL
随机推荐
Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress
QT tutorial: signal and slot mechanism
MySQL learning notes - single table query
2022 high voltage electrician examination and high voltage electrician reexamination examination
Exercises of function recursion
2022 melting welding and thermal cutting examination materials and free melting welding and thermal cutting examination questions
18、 MySQL -- index
强化學習-學習筆記1 | 基礎概念
Analysis of gas fee setting under eip1559
Recommendation of books related to strong foundation program mathematics
Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
Strange way of expressing integers (expanding Chinese remainder theorem)
Basic knowledge of dictionaries and collections
It is discussed that the success of Vit lies not in attention. Shiftvit uses the precision of swing transformer to outperform the speed of RESNET
In 2021, the global revenue of thick film resistors was about $1537.3 million, and it is expected to reach $2118.7 million in 2028
Implementation of stack
Plan for the first half of 2022 -- pass the PMP Exam
Producer consumer mode (multithreading, use of shared resources)
Camera calibration (I): robot hand eye calibration
Preliminary practice of niuke.com (11)