当前位置:网站首页>Go language series: how to build a go language development environment?
Go language series: how to build a go language development environment?
2022-07-27 13:37:00 【InfoQ】
Preface
GoGoGoWindowMacBuild development environment
GoOne 、Go download
Go2GolangChina : https://golang.google.cn/dl/
GoLanguage website : https://golang.org/dl/
GoGolangGolang


- Install the system supported by the package
- The system version and supported by the installation package
CPUdigit
1.18.4Indicates the version number of the current installation package , The Middle English represents the system ,amd64Represents a match64BitCPU
- The file size of the installation package
Two 、Windows System installation Go course
WindowsGo2.1 Download installation package
Windows
2.2 Start installation

Next


C:\Program Files\Go
api: VersionsapiChange the difference
bin:goCompiler compiled by source package 、 Formatting tool 、 Documentation tools, etc
doc: English version ofgofile
lib: Some library files that depend on
misc: Relevant documents for other purposes , Such asAndroidPlatform compilation
pkg:windowsMiddleware compiled by the platform
src: Standard library source code
test: Test force
2.3 Check Go Is the installation successful
cmdgo version
WindowsGo3、 ... and 、Mac System installation Go course
MacGo3.1 Mode one : adopt brew install
brewbrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brewvpnvpnbrew- Turn on the phone hotspot ,
macComputers connect to mobile hotspots
- Then input
brewOfficial website installation order , You will find that the download speed is very fast , Final installation successful
brewgoMacGogobrew install go brew install golang3.2 Mode two : Download installation package
Mac
Mac
continue Installation successful 

3.3 Check Go Is the installation successful
go versiongo
Four 、 Write the first Go Language program
hello world!4.1 Start
helloworld.gopackage main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
Hello World!4.2 perform
gogo rungo run helloworld.go
go buildhelloworldhelloworld.exe


GowindowmacGoAfterword
边栏推荐
- [node+ts] build node+typescript project
- 从tidb实时同步到mysql 只能用 tidb binlog 工具吗?
- 滑环设备怎么进行维护
- 能说一说 Kotlin 中 lateinit 和 lazy 的区别吗?
- 以科技传递温度,vivo亮相数字中国建设峰会
- MTK6765编译环境搭建
- Intranet penetration based on FRP -- SSH Remote connection to intranet server with the help of public server
- js将数组根据指定属性值分组成二维数组
- Jesd204b debugging notes (practical version)
- OPPO 自研大规模知识图谱及其在数智工程中的应用
猜你喜欢

Li Hang, director of ByteDance AI Lab: past, present and future of language model

马斯克被曝绿了谷歌创始人:导致挚友二婚破裂,曾下跪求原谅

初学者入门:使用WordPress搭建一个专属自己的博客

Realize the disk partition and file system mount of the newly added hard disk

电滑环的常用类型

MFC FTP creates multi-level folders and uploads files to the specified directory of FTP

echart折线图默认显示最后一个点以及纵向虚线

网络异常流量分析系统设计

责任链模式在转转精准估价中的应用

Interface testing practical tutorial 01: interface testing environment construction
随机推荐
MFC FTP creates multi-level folders and uploads files to the specified directory of FTP
Sff1004-mhchxm diode sff1004
绝对定位
Arrays and functions of knowledge in every corner of C language
Jesd204b debugging notes (practical version)
从tidb实时同步到mysql 只能用 tidb binlog 工具吗?
高度塌陷和BFC
Musk was exposed to be the founder of Google: he broke up his best friend's second marriage and knelt down to beg for forgiveness
Calculates the length of the last word of the string, separated by spaces.
How can electric complete set enterprises do well in cost and profit management with the help of ERP system?
Feign client automatic assembly of three clients
Set up SSH key based authentication using putty
初学者入门:使用WordPress搭建一个专属自己的博客
腾讯云联合中国工联院发布工业AI质检标准化研究成果加速制造业智能化转型
Go语言系列:如何搭建Go语言开发环境?
MTK6765编译环境搭建
纵横靶场-图片的奥秘
echart折线图默认显示最后一个点以及纵向虚线
图像特征及提取
数据库HTAP能力强弱怎么看