protobuf-go-lite

Reflection-free Protobuf for Go.

22 articles 50 View on GitHub ↗
22 articles
protobuf-go-lite and the StaRPC Ecosystem: Building Lightweight RPCs Without Reflection

Discover how protobuf-go-lite powers the StaRPC ecosystem for ultra-lightweight RPCs. Build efficient applications with static, reflection-free message handling and reduced overhead.

deep-dive
Feb 25, 2026
How protobuf-go-lite Uses fastjson for High-Performance JSON Parsing in Generated Code

Learn how protobuf-go-lite leverages fastjson for high-performance JSON parsing in generated code. Achieve zero-allocation parsing for Go protobuf messages with MarshalProtoJSON and UnmarshalProtoJSON.

deep-dive
Feb 25, 2026
How to Troubleshoot Unmarshal Issues in protobuf-go-lite: Ensuring Proper Reset Semantics

Troubleshoot protobuf-go-lite unmarshal issues by invoking Reset before UnmarshalVT to prevent data corruption and ensure proper initialization.

how-to-guide
Feb 25, 2026
How protobuf-go-lite Generates Optimized Code for Different Go Versions (Go 1.20 vs 1.21)

Discover how protobuf-go-lite optimizes code for Go 1.21 using unsafe String intrinsics and falls back to Go 1.20 for superior performance.

performance
Feb 25, 2026
How to Enforce Strict Field Ordering with MarshalVTStrict in protobuf-go-lite

Learn how to enforce strict field ordering with MarshalVTStrict in protobuf-go-lite. Enable marshal_strict to serialize protobuf fields in ascending tag order for precise control.

how-to-guide
Feb 25, 2026
MarshalVT vs MarshalToVT vs MarshalToSizedBufferVT in protobuf-go-lite

Explore MarshalVT, MarshalToVT, and MarshalToSizedBufferVT in protobuf-go-lite. Understand how each method marshals protobuf data with efficient buffer management.

deep-dive
Feb 25, 2026
How protobuf-go-lite Integrates with vtprotobuf for Virtual Table Optimization

Discover how protobuf-go-lite integrates with vtprotobuf to generate virtual table methods for high-performance zero-allocation serialization. Optimize your Go protobufs.

deep-dive
Feb 25, 2026
How protobuf-go-lite Handles Well-Known Types: Timestamp, Duration, Any, and Empty

Discover how protobuf-go-lite efficiently handles well-known types like Timestamp Duration Any and Empty using reflection-free implementations and custom ProtoJSON marshaling

deep-dive
Feb 25, 2026
How to Configure Build Tags in Generated protobuf Go Code with protoc-gen-go-lite

Easily configure build tags in generated protobuf Go code using protoc-gen-go-lite. Add //go:build directives with simple protoc parameter for optimized Go builds.

how-to-guide
Feb 25, 2026
How the EqualVT Method Compares Protobuf Messages Without Reflection

Learn how EqualVT outperforms reflection by comparing Protobuf messages with direct Go code walks. Discover faster, more efficient message comparison.

deep-dive
Feb 25, 2026
How to Use the CloneVT Method for Deep Copying Protobuf Messages in Go

Learn how to use the generated CloneVT method for deep copying protobuf messages in Go with protobuf-go-lite. Create complete duplicates of your messages effortlessly.

how-to-guide
Feb 25, 2026
How to Use the Generated SizeVT Method for Buffer Pre-Allocation Optimization in protobuf-go-lite

Optimize protobuf-go-lite buffer pre-allocation using the generated SizeVT method. Calculate exact size and marshal directly into a pre-allocated buffer to eliminate temporary allocations.

how-to-guide
Feb 25, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →