go-zero installation

Overview

In Golang, we recommend using go module to manage.

It is recommended that GOPROXYbe set up at Golang installation. See golang Installation

Installation

  1. $ mkdir <project name> && cd <project name> # project name is specific value
  2. $ go mod init <module name> # module name is specific value
  3. $ github.com/zeromicro/go-zero@latest

FAQ

1. After GOROXY is set, dependencies or pull?

Confirm whether GO111MODULE is on

  1. $ go env -w GO111MODULE=on
  2. $ go env -w GOPROXY=https://goproxy.cn,direct