根据proto文件生成gin框架
注意:
- 使用了
embed特性,需要go1.16以上版本,go mod注意版本信息
安装
go get -u github.com/x-lambda/protoc-gen-gin使用方式
protoc --gin_out . --gin_opt=paths=source_relative --gin_opt=code=-1 demo.protoexample: https://github.com/x-lambda/nautilus
| Name | Name | Last commit date | ||
|---|---|---|---|---|
根据proto文件生成gin框架
注意:
embed特性,需要go1.16以上版本,go mod注意版本信息安装
go get -u github.com/x-lambda/protoc-gen-gin使用方式
protoc --gin_out . --gin_opt=paths=source_relative --gin_opt=code=-1 demo.protoexample: https://github.com/x-lambda/nautilus