[阿里云镜像]下载并安装Go环境

阅读: 作者:admin   发表于 2022-11-18 14:21

  

一、参考链接

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

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

二、Go介绍

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

三、下载Go安装包

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

四、Windows系统下安装Go环境











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

MicrosoftWindows[版本10.0.19042.1237](c)MicrosoftCorporation。保留所有权利。C:\Users\xyb>goGoisatoolformanagingGosourcecode.Usage:go[arguments]Thecommandsare:bugstartabugreportbuildcompilepackagesanddependenciescleanremoveobjectfilesandcachedfilesdocshowdocumentationforpackageorsymbolenvprintGoenvironmentinformationfixupdatepackagestousenewAPIsfmtgofmt(reformat)packagesourcesgenerategenerateGofilesbyprocessingsourcegetadddependenciestocurrentmoduleandinstalltheminstallcompileandinstallpackagesanddependencieslistlistpackagesormodulesmodmodulemaintenanceruncompileandrunGoprogramtesttestpackagestoolrunspecifiedgotoolversionprintGoversionvetreportlikelymistakesinpackagesUse"gohelp"formoreinformationaboutacommand.Additionalhelptopics:buildconstraintbuildconstraintsbuildmodebuildmodesccallingbetweenGoandCcachebuildandtestcachingenvironmentenvironmentvariablesfiletypefiletypesgo.modthego.modfilegopathGOPATHenvironmentvariablegopath-getlegacyGOPATHgogetgoproxymoduleproxyprotocolimportpathimportpathsyntaxmodulesmodules,moduleversions,andmoremodule-getmodule-awaregogetmodule-authmoduleauthenticationusinggo.sumpackagespackagelistsandpatternsprivateconfigurationfordownloadingnon-publiccodetestflagtestingflagstestfunctestingfunctionsvcscontrollingversioncontrolwithGOVCSUse"gohelp"formoreinformationaboutthattopic.C:\Users\xyb>

输入goversion查看版本信息。

C:\Users\xyb\Desktop\Go+\gop>goversiongoversiongo1.17.4windows/amd64

C:\Users\xybdiy>goenvsetGO111MODULE=setGOARCH=amd64setGOBIN=setGOCACHE=C:\Users\xybdiy\AppData\Local\go-buildsetGOENV=C:\Users\xybdiy\AppData\Roaming\go\envsetGOEXE=.exesetGOEXPERIMENT=setGOFLAGS=setGOHOSTARCH=amd64setGOHOSTOS=windowssetGOINSECURE=setGOMODCACHE=C:\Users\xybdiy\go\pkg\modsetGONOPROXY=setGONOSUMDB=setGOOS=windowssetGOPATH=C:\Users\xybdiy\gosetGOPRIVATE=setGOPROXY=https://proxy.golang.org,directsetGOROOT=C:\ProgramFiles\GosetGOSUMDB=sum.golang.orgsetGOTMPDIR=setGOTOOLDIR=C:\ProgramFiles\Go\pkg\tool\windows_amd64setGOVCS=setGOVERSION=go1.17.4setGCCGO=gccgosetAR=arsetCC=gccsetCXX=g++setCGO_ENABLED=1setGOMOD=NULsetCGO_CFLAGS=-g-O2setCGO_CPPFLAGS=setCGO_CXXFLAGS=-g-O2setCGO_FFLAGS=-g-O2setCGO_LDFLAGS=-g-O2setPKG_CONFIG=pkg-configsetGOGCCFLAGS=-m64-mthreads-fmessage-length=0-fdebug-prefix-map=C:\Users\xybdiy\AppData\Local\Temp\go-build2173959602=/tmp/go-build-gno-record-gcc-switchesC:\Users\xybdiy>


全民快三平台,全民快三官网,全民快三网址,全民快三下载,全民快三app,全民快三开户,全民快三投注,全民快三购彩,全民快三注册,全民快三登录,全民快三邀请码,全民快三技巧,全民快三手机版,全民快三靠谱吗,全民快三走势图,全民快三开奖结果

Powered by 全民快三 @2018 RSS地图 HTML地图

导航

热点推荐

最新发布

友情链接