中文网
视频课程
【尚硅谷】Golang入门到实战教程
【视频及配套资料下载】
方式一:尚硅谷官网下载:www.atguigu.com/download.shtml
进度
https://www.bilibili.com/video/BV1ME411Y71o?p=15&vd_source=371d19339b5f92977a68ea8a0ffcf531
本机的根目录信息
root@long-WUJIE-14:/opt# which go
/snap/bin/go
root@long-WUJIE-14:/opt# cd /snap/bin
root@long-WUJIE-14:/snap/bin# ls
cargo obs-studio.ffprobe
cargo-clippy obs-studio.glxinfo
cargo-fmt obs-studio.srt-ffplay
cargo-miri obs-studio.srt-file-transmit
ccmake obs-studio.srt-live-transmit
clippy-driver obs-studio.srt-tunnel
cmake obs-studio.vainfo
cmake.ccmake obs-studio.vdpauinfo
cmake.cmake-gui obs-studio.vulkaninfo
cmake.cpack postman
cmake.ctest rls
cmake-gui rustc
cpack rustdoc
ctest rustfmt
firefox rustup
firefox.geckodriver rustup.cargo
geckodriver rustup.cargo-clippy
go rustup.cargo-fmt
gofmt rustup.cargo-miri
go.gofmt rustup.clippy-driver
jupyter rustup.rls
jupyter.ipython rustup.rustc
jupyter.nbconvert rustup.rustdoc
obs-studio rustup.rustfmt
obs-studio.eglinfo snap-store
obs-studio.ffmpeg snap-store.ubuntu-software
obs-studio.ffplay snap-store.ubuntu-software-local-file
root@long-WUJIE-14:/snap/bin# ./go version
go version go1.20.4 linux/amd64
win11的机子的信息
C:\>go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\22382\AppData\Local\go-build
set GOENV=C:\Users\22382\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\coding2022\Go_1\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\coding2022\Go_1
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,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.20.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\22382\AppData\Local\Temp\go-build1445868057=/tmp/go-build -gno-record-gcc-switches
C:\>go version
go version go1.20.4 windows/amd64
修改go语言环境配置
go env -w GO111MODULE=off