Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.19 KB

READNE_more.md

File metadata and controls

43 lines (29 loc) · 1.19 KB

Overview

micro api是micro中基于go-micro的API网关.

当前仓库的计划,是基于Micro精简到剩下Micro-API,再与x-gateway合并新的x-Gateway

MICRO-API

注意事项

注意China go mod加速问题:官方讨论

关联问题

Go Modules Proxy

Go Module China 加速

设置参考:

  • 设置China国内加)
go env -w GO111MODULE=on
//选一个代理
go env -w GOPROXY=https://goproxy.cn,direct   //go >= 1.13
go env -w GOPROXY=https://goproxy.io,direct
go env -w GOPROXY=https://proxy.golang.org,direct
go env -w GOPROXY=https://athens.azurefd.net,direct
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy,direct
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy,https://goproxy.cn,https://goproxy.io,https://athens.azurefd.net,direct
//选一个SUMDB
go env -w GOSUMDB=sum.golang.org //可选
go env -w GOSUMDB=sum.golang.google.cn //可选

Usage

See all the options

micro --help