当前位置:网站首页>【愚公系列】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
总结

边栏推荐
- Node MySQL serialize cannot rollback transactions
- 2022 safety officer-c certificate examination and safety officer-c certificate registration examination
- Global and Chinese markets of cast iron diaphragm valves 2022-2028: Research Report on technology, participants, trends, market size and share
- QT tutorial: signal and slot mechanism
- Cap and base theory
- PR notes:
- Phpexcel import export
- Pytorch sets the weight and bias of the model to zero
- Golang type assertion and conversion (and strconv package)
- 【leetcode】1027. Longest arithmetic sequence (dynamic programming)
猜你喜欢

Node MySQL serialize cannot rollback transactions

2.4 conversion of different data types

The 15 year old interviewer will teach you four unique skills that you must pass the interview

Test panghu was teaching you how to use the technical code to flirt with girls online on Valentine's Day 520

Apprentissage intensif - notes d'apprentissage 1 | concepts de base

Vscode reports an error according to the go plug-in go get connectex: a connection attempt failed because the connected party did not pro

MDM mass data synchronization test verification

2022 safety officer-c certificate examination and safety officer-c certificate registration examination

Recommendation of books related to strong foundation program mathematics

Task of gradle learning
随机推荐
In 2021, the global general crop protection revenue was about $52750 million, and it is expected to reach $64730 million in 2028
2.3 other data types
47. Process lock & process pool & Collaboration
Qt6 QML Book/Qt Quick 3D/基础知识
Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
PR notes:
SQL injection - Fundamentals of SQL database operation
About callback function and hook function
How to do Taobao full screen rotation code? Taobao rotation tmall full screen rotation code
Global and Chinese market of full authority digital engine control (FADEC) 2022-2028: Research Report on technology, participants, trends, market size and share
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%
How to modify the network IP addresses of mobile phones and computers?
Global and Chinese market of rubidium standard 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets of cast iron diaphragm valves 2022-2028: Research Report on technology, participants, trends, market size and share
强化學習-學習筆記1 | 基礎概念
Use nodejs+express+mongodb to complete the data persistence project (with modified source code)
18、 MySQL -- index
1.5 learn to find mistakes first
C 10 new feature [caller parameter expression] solves my confusion seven years ago
MySQL dump - exclude some table data - MySQL dump - exclude some table data