一、参考链接
阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 (aliyun.com)
golang镜像-golang下载地址-golang装置教程-阿里巴巴开源镜像站 (aliyun.com)
GO语言装置以及国内镜像 - DbWong_0918 - 博客园 (cnblogs.com)
二、Go介绍
Golang(又称Go)是Google公司开发的一种动态强类型、编译型、并发型,并具备垃圾回收性能的编程语言。
下载地址:https://mirrors.aliyun.com/go...
三、下载Go安装包
https://mirrors.aliyun.com/go...
四、Windows零碎下装置Go
装置Go实现后,在CMD中输出go
,输入如下信息,则装置胜利。 ✅
Microsoft Windows [版本 10.0.19042.1237](c) Microsoft Corporation。保留所有权力。C:\Users\xyb>goGo is a tool for managing Go source code.Usage: go <command> [arguments]The commands are: bug start a bug report build compile packages and dependencies clean remove object files and cached files doc show documentation for package or symbol env print Go environment information fix update packages to use new APIs fmt gofmt (reformat) package sources generate generate Go files by processing source get add dependencies to current module and install them install compile and install packages and dependencies list list packages or modules mod module maintenance run compile and run Go program test test packages tool run specified go tool version print Go version vet report likely mistakes in packagesUse "go help <command>" for more information about a command.Additional help topics: buildconstraint build constraints buildmode build modes c calling between Go and C cache build and test caching environment environment variables filetype file types go.mod the go.mod file gopath GOPATH environment variable gopath-get legacy GOPATH go get goproxy module proxy protocol importpath import path syntax modules modules, module versions, and more module-get module-aware go get module-auth module authentication using go.sum packages package lists and patterns private configuration for downloading non-public code testflag testing flags testfunc testing functions vcs controlling version control with GOVCSUse "go help <topic>" for more information about that topic.C:\Users\xyb>
输出go version
查看版本信息。
C:\Users\xyb\Desktop\Go+\gop>go versiongo version go1.17.4 windows/amd64
C:\Users\xybdiy>go envset GO111MODULE=set GOARCH=amd64set GOBIN=set GOCACHE=C:\Users\xybdiy\AppData\Local\go-buildset GOENV=C:\Users\xybdiy\AppData\Roaming\go\envset GOEXE=.exeset GOEXPERIMENT=set GOFLAGS=set GOHOSTARCH=amd64set GOHOSTOS=windowsset GOINSECURE=set GOMODCACHE=C:\Users\xybdiy\go\pkg\modset GONOPROXY=set GONOSUMDB=set GOOS=windowsset GOPATH=C:\Users\xybdiy\goset GOPRIVATE=set GOPROXY=https://proxy.golang.org,directset GOROOT=C:\Program Files\Goset GOSUMDB=sum.golang.orgset GOTMPDIR=set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64set GOVCS=set GOVERSION=go1.17.4set GCCGO=gccgoset AR=arset CC=gccset CXX=g++set CGO_ENABLED=1set GOMOD=NULset CGO_CFLAGS=-g -O2set CGO_CPPFLAGS=set CGO_CXXFLAGS=-g -O2set CGO_FFLAGS=-g -O2set CGO_LDFLAGS=-g -O2set PKG_CONFIG=pkg-configset GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\xybdiy\AppData\Local\Temp\go-build209388612=/tmp/go-build -gno-record-gcc-switchesC:\Users\xybdiy>