gen

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command gen writes the files built from behaviors. For every behavior, its docs pages. For one with behavior.API, in its gen/ directory: api.go, the table of its routes; api_<method>.go, each method's handler; a test for each; and api.yaml, its part of the spec. For one with behavior.CLI, cli.go and its test. Then the OpenAPI spec of every behavior, and internal/behaviors/all/gen, which imports every behavior's generated code. The Go files are built with jen and formatted the way the repository's own are. It runs from the go:generate directive in internal/behaviors/all.

Directories

Path Synopsis
Command group writes what the endpoint layer makes from each behavior's endpoint group: its spec, routes, decoders and commands.
Command group writes what the endpoint layer makes from each behavior's endpoint group: its spec, routes, decoders and commands.

Jump to

Keyboard shortcuts

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