"Protoc-gen-struct-transformer Plugin"
summary
Protoc-gen-struct-transformer claims to remove hand-written, field-by-field conversions by generating conversion functions between protobuf-generated Go structs and business-logic structs, invoked as a protoc plugin. It parses proto options that supply package names and the path to the business struct source and emits a Go file with converters that support pointers and slices and handle basic type casts (int→int64). The tool is open sourced and demonstrated working on a simple orders example.
AI-written summary · about
chapters (4)
related talks
07mGRPC & Go
27mEvolution of serialization formats and usage in Go
31mGo from C to Go
42mgRPC and Go: Developing Efficient and Type-Safe Services
28mGo Protobuf
12mEmbracing the Replace: Our Journey to Fixing the Plugin System in HashiCorp Packer
05mGenerate RESTful services using GRPC gateway
51mGo Tooling in Action
