Re: [go-nuts] Generating proto from go

2016-08-03 Thread Jakob Borg
2016-08-03 9:21 GMT+02:00 Tamás Gulácsi : > Everyone says you should give in, and use what protoc-gen-go generates, but I > don't know how stable is that... This is indeed what you should do. But see also https://github.com/gogo/protobuf which in combination with the proto 3 syntax will give you

[go-nuts] Generating proto from go

2016-08-03 Thread Tamás Gulácsi
I'm in the need for sth similar. Don't forget that protoc-gen-go will generate it's own struct's, which will differ from yours! Or at least extra care is needed. Everyone says you should give in, and use what protoc-gen-go generates, but I don't know how stable is that... -- You received this

[go-nuts] Generating proto from go

2016-08-01 Thread Sankar
Hi I have a Golang server with a bunch of structs. The server was serving data over JSON happily till now. Suddenly, there is a need for using proto. Is there a way to automatically generate a .proto file given a set of golang structs ? Some structs contain arrays of instances of some of these