main.go README MIT license protoc-gen-gotag (PGGT) PGGT is a protoc plugin used to add/replace struct tags on generated protobuf messages. Get it usinggo get -u github.com/amsokol/protoc-gen-gotagIt supports the following features, ...
https://github.com/protocolbuffers/protobuf-go google的安装方式是: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest最新tag为1.27.0最老tag为1.20.0 而不是 go install github.com/protocolbuffers/protobuf-go/cmd/protoc-gen-go@latest #这是错误的 真是令我矛盾的google啊. 其他设置 ...
go.sum init project Jul 1, 2022 main.go init project Jul 1, 2022 makefile init project Jul 1, 2022 readme.md init project Jul 1, 2022 rewrite *pb.go file insert tag usage: protoc-gen-go-tag example1.pb.go example2.pb.go
I have written a tool named protoc-gen-go-tag to this feature, custom struct tags for protobuf! This seems to be nice, as it's implemented by protobuf and golang's AST. install:go get -u github.com/searKing/golang/tools/cmd/protoc-gen-go-tag ...
go get -u github.com/golang/protobuf/protoc-gen-go 便可以在$GOPATH/bin目录下发现这个工具。 当Linux系统无法访问网络时:首先在github.com/golang/protobuf上下载protoc-gen-go和proto,(最好将其放在$GOPATH/src目录下)然后进入protoc-gen-go目录,执行go build、go install即可在$GOPATH/bin目录下发现这...
所以我只要对SysUserORM添加 对应的BeforeCreate_方法就行了 拓展 同理 如果 你想 给 实体 加上 json 的 tag 标记 ,下面 有个 库 可以 参考着用 https://github.com/favadi/protoc-go-inject-tag https://github.com/srikrsna/protoc-gen-gotag 有空 写下怎么用...
protoc v3.12.0 is going to add experimental support for the optional annotation to proto3 (see RC: https://github.com/protocolbuffers/protobuf/releases/tag/v3.12.0-rc1). We may need to update our generator(s) (protoc-gen-grpc-gateway, protoc-gen-swagger). Doc for adding this ability ...
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest https://github.com/protocolbuffers/protobuf/releases/tag/v21.5 goland 环境变量设置 GOPROXY=https://goproxy.io,direct;GOPRIVATE=gitlab.oye-inc.com 命令行环境变量设置 go env -w GOPRIVATE=gitlab.oye-inc.com...
Fork1.6k Star9.8k Files master .github descriptor internal jsonpb proto protoc-gen-go descriptor generator grpc plugin main.go ptypes .gitignore AUTHORS CONTRIBUTING.md CONTRIBUTORS LICENSE README.md go.mod go.sum regenerate.bash test.bash
go get github.com/golang/protobuf/protoc-gen-go 报错如下错误 我使用的go版本是1.17。而Go1.17版使用go install安装依赖。所以应该按照它下面的格式go install pkg@version进行拉取,同时按照提示原来的地址作废需要 替换成google.golang.org/protobuf,最终命令为: ...