zapgen

command
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Command zapgen emits per-schema ZAP v2 accessors from a declarative schema description.

Usage:

zapgen -name AdvanceTimeTx -go-name AdvanceTimeSchema -kind 1 \
       -size 9 -package examples -field Time:uint64:1 \
       -out v2/examples/advance_time_zap.go

The emitted file's Wrap/New functions use v1 primitives directly so the Go compiler inlines them into the caller — matching v1 hand-rolled performance to within compiler noise.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL