ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

*.pb.go 和 *_gprc.pb.go

2022-01-02 10:03:34  阅读:93  来源: 互联网

标签:gprc code src gRPC pb go GOPATH


1.The Go code generator does not produce output for services by default.
 	If you enable the gRPC plugin (see the gRPC Go Quickstart guide) then code will be generated to support gRPC.
2.*.pb.go
	Code for populating, serializing, and retrieving * message types
3.*_grpc.pb.go
	Generated client and server code
4.how to generate *.pb.go and *_grpc.pb.go
	protoc -I$GOPATH/src -I. --go-grpc_out=$GOPATH/src example.proto
	protoc -I$GOPATH/src -I. --go_out=$GOPATH/src example.proto

标签:gprc,code,src,gRPC,pb,go,GOPATH
来源: https://blog.csdn.net/qq_38963393/article/details/122273817

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有