parsec-gen

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package main is the parsec-gen command: it reads a Parsec schema registry snapshot (either from a running registry over HTTP or from a JSON file on disk) and emits typed Go and TypeScript bindings for every registered channel pattern.

Typical use:

# Go bindings from a running registry into ./gen/parsecgen.
parsec-gen --registry http://localhost:8000/parsec/schemas \
           --lang go --out ./gen/parsecgen \
           --package parsecgen

# Both languages from a committed snapshot.
parsec-gen --registry-file ./schemas.json \
           --lang go,ts --out ./gen

Filenames are fixed: Go output writes to <out>/parsec_gen.go, TypeScript output writes to <out>/index.ts. The directory is created if absent.

Jump to

Keyboard shortcuts

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