go-zero installation
Overview
In Golang, we recommend using go module
to manage.
It is recommended that GOPROXY
be set up at Golang installation. See golang Installation
Installation
$ mkdir <project name> && cd <project name> # project name is specific value
$ go mod init <module name> # module name is specific value
$ github.com/zeromicro/go-zero@latest
FAQ
1. After GOROXY is set, dependencies or pull?
Confirm whether GO111MODULE
is on
$ go env -w GO111MODULE=on
$ go env -w GOPROXY=https://goproxy.cn,direct