1.1安装go
go的三种安装方式
- Go源码安装:这是一种标准的软件安装方式。对于经常使用Unix类系统的用户,尤其对于开发者来说,从源码安装可以自己定制。
- Go标准包安装:Go提供了方便的安装包,支持Windows、Linux、Mac等系统。这种方式适合快速安装,可根据自己的系统位数下载好相应的安装包,一路next就可以轻松安装了。推荐这种方式
- 第三方工具安装:目前有很多方便的第三方软件包工具,例如Ubuntu的apt-get和wget、Mac的homebrew等。这种安装方式适合那些熟悉相应系统的用户。、
go官方下载直接一路next就可以了。。。
配置好环境变量cmd输入命令go,出现下面情况表示安装成功,查看系统是32位还是64位windows输入 systeminfo就可以看到
1 C:\Users\Administrator>go 2 Go is a tool for managing Go source code. 3 Usage: 4 go <command> [arguments] 5 The commands are: 6 bug start a bug report 7 build compile packages and dependencies 8 clean remove object files and cached files 9 doc show documentation for package or symbol 10 env print Go environment information 11 fix update packages to use new APIs 12 fmt gofmt (reformat) package sources 13 generate generate Go files by processing source 14 get download and install packages and dependencies 15 install compile and install packages and dependencies 16 list list packages or modules 17 mod module maintenance 18 run compile and run Go program 19 test test packages 20 tool run specified go tool 21 version print Go version 22 vet report likely mistakes in packages 23 24 Use "go help <command>" for more information about a command. 25 26 Additional help topics: 27 28 buildmode build modes 29 c calling between Go and C 30 cache build and test caching 31 environment environment variables 32 filetype file types 33 go.mod the go.mod file 34 gopath GOPATH environment variable 35 gopath-get legacy GOPATH go get 36 goproxy module proxy protocol 37 importpath import path syntax 38 modules modules, module versions, and more 39 module-get module-aware go get 40 packages package lists and patterns 41 testflag testing flags 42 testfunc testing functions 43 44 Use "go help <topic>" for more information about that topic.
LiteIDE安装配置
-
LiteIDE安装