Documentation
¶
Overview ¶
Package codegen renders a resolved plan into gofmt-compatible Go source.
Output is deterministic: the same input always produces byte-identical source. Imports and local variable names are derived from the graph, with numeric suffixes assigned in a stable order to resolve conflicts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File accumulates the generated functions for one package.
type Options ¶
type Options struct {
// LoomPkg is the loom package, used for loom.NewLifecycle.
LoomPkg *types.Package
// LifecyclePtr is *loom.Lifecycle.
LifecyclePtr types.Type
// Cleanup is loom.Cleanup.
Cleanup types.Type
// Context is context.Context.
Context types.Type
// ErrorsPkg is the standard library errors package, used for errors.Join.
ErrorsPkg *types.Package
}
Options carries the framework types codegen needs to reference.
Click to show internal directories.
Click to hide internal directories.