entrygen

command
v0.0.0-...-8bd0cf1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: ISC Imports: 11 Imported by: 0

Documentation

Overview

Command ledgerfieldsgen emits one typed-decoder Go file per ledger entry type listed in ledger/entry/schema.Specs. For each spec entry it looks up every field's XRPL type and ordinal in codec/binarycodec/definitions and writes a struct + Decode + emit methods that match the runtime contract in ledger/entry.Entry.

Invocation: from the repo root,

go run ./ledger/entry/cmd/entrygen

The package itself carries a //go:generate directive so `go generate ./...` picks it up.

Jump to

Keyboard shortcuts

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