欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【阿里云镜像】下载并安装Go环境

程序员文章站 2022-03-07 19:21:10
...

一、参考链接

阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 (aliyun.com)

golang镜像-golang下载地址-golang安装教程-阿里巴巴开源镜像站 (aliyun.com)

GO语言安装以及国内镜像 - DbWong_0918 - 博客园 (cnblogs.com)

二、Go介绍

Golang(又称Go)是Google公司开发的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。

下载地址:https://mirrors.aliyun.com/golang/

三、下载Go安装包

https://mirrors.aliyun.com/golang/go1.17.4.windows-arm64.msi

【阿里云镜像】下载并安装Go环境

四、Windows系统下安装Go

【阿里云镜像】下载并安装Go环境
????????????????????
【阿里云镜像】下载并安装Go环境
????????????????????
【阿里云镜像】下载并安装Go环境
????????????????????
【阿里云镜像】下载并安装Go环境
????????????????????
【阿里云镜像】下载并安装Go环境
????????????????????
【阿里云镜像】下载并安装Go环境

【阿里云镜像】下载并安装Go环境

? 安装Go完成后,在CMD中输入go,输出如下信息,则安装成功。

  1. Microsoft Windows [版本 10.0.19042.1237]
  2. (c) Microsoft Corporation。保留所有权利。
  3. C:\Users\xyb>go
  4. Go is a tool for managing Go source code.
  5. Usage:
  6. go <command> [arguments]
  7. The commands are:
  8. bug start a bug report
  9. build compile packages and dependencies
  10. clean remove object files and cached files
  11. doc show documentation for package or symbol
  12. env print Go environment information
  13. fix update packages to use new APIs
  14. fmt gofmt (reformat) package sources
  15. generate generate Go files by processing source
  16. get add dependencies to current module and install them
  17. install compile and install packages and dependencies
  18. list list packages or modules
  19. mod module maintenance
  20. run compile and run Go program
  21. test test packages
  22. tool run specified go tool
  23. version print Go version
  24. vet report likely mistakes in packages
  25. Use "go help <command>" for more information about a command.
  26. Additional help topics:
  27. buildconstraint build constraints
  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. module-auth module authentication using go.sum
  41. packages package lists and patterns
  42. private configuration for downloading non-public code
  43. testflag testing flags
  44. testfunc testing functions
  45. vcs controlling version control with GOVCS
  46. Use "go help <topic>" for more information about that topic.
  47. C:\Users\xyb>

输入go version 查看版本信息。

  1. C:\Users\xyb\Desktop\Go+\gop>go version
  2. go version go1.17.4 windows/amd64
  1. C:\Users\xybdiy>go env
  2. set GO111MODULE=
  3. set GOARCH=amd64
  4. set GOBIN=
  5. set GOCACHE=C:\Users\xybdiy\AppData\Local\go-build
  6. set GOENV=C:\Users\xybdiy\AppData\Roaming\go\env
  7. set GOEXE=.exe
  8. set GOEXPERIMENT=
  9. set GOFLAGS=
  10. set GOHOSTARCH=amd64
  11. set GOHOSTOS=windows
  12. set GOINSECURE=
  13. set GOMODCACHE=C:\Users\xybdiy\go\pkg\mod
  14. set GONOPROXY=
  15. set GONOSUMDB=
  16. set GOOS=windows
  17. set GOPATH=C:\Users\xybdiy\go
  18. set GOPRIVATE=
  19. set GOPROXY=https://proxy.golang.org,direct
  20. set GOROOT=C:\Program Files\Go
  21. set GOSUMDB=sum.golang.org
  22. set GOTMPDIR=
  23. set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
  24. set GOVCS=
  25. set GOVERSION=go1.17.4
  26. set GCCGO=gccgo
  27. set AR=ar
  28. set CC=gcc
  29. set CXX=g++
  30. set CGO_ENABLED=1
  31. set GOMOD=NUL
  32. set CGO_CFLAGS=-g -O2
  33. set CGO_CPPFLAGS=
  34. set CGO_CXXFLAGS=-g -O2
  35. set CGO_FFLAGS=-g -O2
  36. set CGO_LDFLAGS=-g -O2
  37. set PKG_CONFIG=pkg-config
  38. set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\xybdiy\AppData\Local\Temp\go-build209388612=/tmp/go-build -gno-record-gcc-switches
  39. C:\Users\xybdiy>