Gob is supported, but I'm not familiar with its current popular use cases. Most often I see people mapping Go types directly to JSON, but using protos with gRPC and other places where the compact encoding helps.
On Mon, Mar 25, 2019 at 9:45 AM Glen Huang <hey....@gmail.com> wrote: > Thanks for the reply, Sameer. > > Being able to directly send go types is a really big plus for me, I wonder > if I really want to use gob, are there any recommended rpc choices? > > Btw, since grpc + protobuf is the recommended choice right now, does that > mean gob is semi deprecated (or at least on hiatus) right now? > > On Monday, March 25, 2019 at 10:36:12 PM UTC+8, Sameer Ajmani wrote: >> >> With gRPC, I recommend you use protobuf. >> >> On Mon, Mar 25, 2019 at 8:18 AM Glen Huang <hey...@gmail.com> wrote: >> >>> I planed to use net/rpc with gob, but then found the GitHub issue saying >>> net/rpc is deprecated, and people should be using grpc instead. >>> >>> That leads to the question should I use grpc with gob or stick with >>> protobuf? Google suggests not many people talk about using grpc with gob, >>> any there aren't many examples demonstrating how to integrate gob into >>> grpc. >>> >>> I wonder why that's case? Should I use gob or stick with protobuf? >>> >>> Thanks in advance. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "golang-nuts" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to golang-nuts...@googlegroups.com. >> >> >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.