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

边栏推荐
- 6006. Take out the minimum number of magic beans
- 2022 high voltage electrician examination and high voltage electrician reexamination examination
- Upgrade PIP and install Libraries
- How can the outside world get values when using nodejs to link MySQL
- Use nodejs+express+mongodb to complete the data persistence project (with modified source code)
- Qtablewidget control of QT
- Global and Chinese markets of active matrix LCD 2022-2028: Research Report on technology, participants, trends, market size and share
- Plan for the first half of 2022 -- pass the PMP Exam
- 2022 melting welding and thermal cutting examination materials and free melting welding and thermal cutting examination questions
- Make a simple text logo with DW
猜你喜欢
Recommendation of books related to strong foundation program mathematics
浅议.NET遗留应用改造
[Tang Laoshi] C -- encapsulation: member variables and access modifiers
Node MySQL serialize cannot rollback transactions
Q&A:Transformer, Bert, ELMO, GPT, VIT
2022 high voltage electrician examination and high voltage electrician reexamination examination
Derivation of decision tree theory
1.5 learn to find mistakes first
Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
MDM mass data synchronization test verification
随机推荐
Network security Kali penetration learning how to get started with web penetration how to scan based on nmap
浅议.NET遗留应用改造
From the behind the scenes arena of the ice and snow event, see how digital builders can ensure large-scale events
Global and Chinese market of high purity copper foil 2022-2028: Research Report on technology, participants, trends, market size and share
Wargames study notes -- Leviathan
Vscode reports an error according to the go plug-in go get connectex: a connection attempt failed because the connected party did not pro
你真的知道自己多大了吗?
Virtual machine installation deepin system
[raid] [simple DP] mine excavation
强基计划 数学相关书籍 推荐
FAQs for datawhale learning!
MySQL learning notes - single table query
Example of peanut shell inner net penetration
Deep search DFS + wide search BFS + traversal of trees and graphs + topological sequence (template article acwing)
Use nodejs+express+mongodb to complete the data persistence project (with modified source code)
App compliance
Upgrade PIP and install Libraries
Don't be afraid of no foundation. Zero foundation doesn't need any technology to reinstall the computer system
2.1 use of variables
Gym welcomes the first complete environmental document, which makes it easier to get started with intensive learning!