创建一个新微服务

$ micro new test-service

下载 protobuf 包编译

$ cd protobuf
$ ./configure
$ make && make install

返回到微服务目录

$ cd test-service
$ go get -u github.com/golang/protobuf/proto
$ go get -u github.com/golang/protobuf/protoc-gen-go
$ go get github.com/micro/micro/v3/cmd/protoc-gen-micro
$ make proto

相关文章:

  • 2021-11-23
  • 2021-05-16
  • 2022-12-23
  • 2023-01-07
  • 2021-09-08
  • 2022-12-23
  • 2021-10-03
猜你喜欢
  • 2023-01-25
  • 2023-01-26
  • 2023-01-27
  • 2021-12-18
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案