关于阿里云:阿里云镜像下载并安装Go环境

54次阅读

共计 2779 个字符,预计需要花费 7 分钟才能阅读完成。

一、参考链接

阿里巴巴开源镜像站 -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>go
Go 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 packages
Use "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 GOVCS
Use "go help <topic>" for more information about that topic.
C:\Users\xyb>

输出 go version 查看版本信息。

C:\Users\xyb\Desktop\Go+\gop>go version
go version go1.17.4 windows/amd64
C:\Users\xybdiy>go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\xybdiy\AppData\Local\go-build
set GOENV=C:\Users\xybdiy\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\xybdiy\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\xybdiy\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.17.4
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
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
C:\Users\xybdiy>

正文完
 0