Skip to content
Generate protobuf messages from go structs
Branch: master
Clone or download
Latest commit f008635 Apr 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
.gitignore
LICENSE do Mar 20, 2019
README.md Update README.md Apr 12, 2019
go.mod do Mar 20, 2019
go.sum
main.go

README.md

go2proto

Generate Protobuf messages from given go structs. No RPC, not gogo syntax, just pure Protobuf messages.

Example

GO111MODULE=off go get -u github.com/anjmao/go2proto
go2proto -f ${PWD}/example/out -p github.com/anjmao/go2proto/example/in

Note

Generated code may not be perfect but since it just 180 lines of code you are free to adapt it for your needs.

You can’t perform that action at this time.