Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
craftgo
command
craftgo gen subcommand: design parse, semantic analysis, per-package + project-wide codegen.
|
craftgo gen subcommand: design parse, semantic analysis, per-package + project-wide codegen. |
|
craftgo-lsp
command
Command craftgo-lsp implements a Language Server Protocol server for the CraftGo DSL.
|
Command craftgo-lsp implements a Language Server Protocol server for the CraftGo DSL. |
|
internal
|
|
|
ast
Package ast defines the abstract syntax tree produced by the parser.
|
Package ast defines the abstract syntax tree produced by the parser. |
|
bench
Package bench houses bind-path microbenchmarks.
|
Package bench houses bind-path microbenchmarks. |
|
codegen
Decorator-argument literal extractors shared by the validator, OpenAPI, transport, and routes emitters.
|
Decorator-argument literal extractors shared by the validator, OpenAPI, transport, and routes emitters. |
|
config
Package config loads and validates `craftgo.design.yaml`, the project manifest read by every CLI command.
|
Package config loads and validates `craftgo.design.yaml`, the project manifest read by every CLI command. |
|
errcat
Package errcat holds the canonical catalogue of reserved HTTP error categories.
|
Package errcat holds the canonical catalogue of reserved HTTP error categories. |
|
format
Package format renders an ast.File back to canonical CraftGo source.
|
Package format renders an ast.File back to canonical CraftGo source. |
|
idents
Package idents holds the Go-identifier conversion helpers used by both the semantic analyser and the codegen pass.
|
Package idents holds the Go-identifier conversion helpers used by both the semantic analyser and the codegen pass. |
|
lexer
Package lexer tokenizes craftgo DSL source files.
|
Package lexer tokenizes craftgo DSL source files. |
|
lsp
Decorator-arg/name LSP completions: dispatcher, context detection, error categories.
|
Decorator-arg/name LSP completions: dispatcher, context detection, error categories. |
|
parser
Package parser turns a craftgo source buffer into an ast.File.
|
Package parser turns a craftgo source buffer into an ast.File. |
|
prims
Package prims is the catalogue of the DSL's built-in type spellings.
|
Package prims is the catalogue of the DSL's built-in type spellings. |
|
route
Package route is the leaf authority for craftgo's two path namespaces and the wall between them.
|
Package route is the leaf authority for craftgo's two path namespaces and the wall between them. |
|
semantic
@default / @example literal validation: target type support, literal kind and value fit.
|
@default / @example literal validation: target type support, literal kind and value fit. |
|
strfmt
Package strfmt is the catalogue of named string formats `@format` accepts: for each, the OpenAPI `format` keyword, the Go imports the generated check needs and the check itself.
|
Package strfmt is the catalogue of named string formats `@format` accepts: for each, the OpenAPI `format` keyword, the Go imports the generated check needs and the check itself. |
|
wire
Package wire is the leaf vocabulary of craftgo's wire bindings: where a field's value rides (path / query / header / cookie / form / body / sensitive), how its wire name is derived, and the request auto-binding rule.
|
Package wire is the leaf vocabulary of craftgo's wire bindings: where a field's value rides (path / query / header / cookie / form / body / sensitive), how its wire name is derived, and the request auto-binding rule. |
|
pkg
|
|
|
log
Package log defines the Logger interface used across craftgo together with a default zap adapter.
|
Package log defines the Logger interface used across craftgo together with a default zap adapter. |
|
metrics
Package metrics is superseded by github.com/craftgodotdev/craftgo/pkg/telemetry, which wires traces and metrics as one stack.
|
Package metrics is superseded by github.com/craftgodotdev/craftgo/pkg/telemetry, which wires traces and metrics as one stack. |
|
otel
Package otel is superseded by github.com/craftgodotdev/craftgo/pkg/telemetry, which wires traces and metrics as one stack.
|
Package otel is superseded by github.com/craftgodotdev/craftgo/pkg/telemetry, which wires traces and metrics as one stack. |
|
server
Package server is the thin `net/http` wrapper that craftgo's generated routes register against.
|
Package server is the thin `net/http` wrapper that craftgo's generated routes register against. |
|
telemetry
Package telemetry wires a service's traces and metrics as one stack.
|
Package telemetry wires a service's traces and metrics as one stack. |
Click to show internal directories.
Click to hide internal directories.