go-zero开发教程

安装protobuf

https://github.com/protocolbuffers/protobuf/releases

下载protoc-3.14.0-win64.zip解压到D:\dev\protoc

环境变量Path下增加D:\dev\protoc\bin

安装 protoc-gen-go

go get -u github.com/golang/protobuf/protoc-gen-go

会自动安装到$GOPATH/bin目录,请确保$GOPATH/bin在Path环境变量里面

查看注册

> set ETCDCTL_API=3
> etcdctl get hello.rpc --prefix
hello.rpc/7587851324030678800
127.0.0.1:8080