Go Module Configuration
#
Introduction to Go ModuleModules are how Go manages dependencies.[1]
That is, Go Module is a way for Golang to manage dependencies, similar to Maven in Java and Gradle in Android.
#
Module configurationCheck the status of
GO111MODULE
Turn on
GO111MODULE
, if it is already turned on (that is, executego env GO111MODULE
and the result ison
), please skip it.Set up
GOPROXY
Set up
GOMODCACHE
view
GOMODCACHE
If the directory is not empty or
/dev/null
, please skip it.
#
Reference[1][Go Modules Reference](https://golang.google.cn/ref/mod)