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
OpenAPI codegen uses `github.com/getkin/kin-openapi` to build a strongly- typed openapi3.T document and `sigs.k8s.io/yaml` to render it as YAML.
|
OpenAPI codegen uses `github.com/getkin/kin-openapi` to build a strongly- typed openapi3.T document and `sigs.k8s.io/yaml` to render it as YAML. |
|
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. |
|
semantic
Package semantic — @default literal validation: type/element support, primitive-kind map, helpers.
|
Package semantic — @default literal validation: type/element support, primitive-kind map, helpers. |
|
strfmt
Package strfmt holds the canonical catalogue of named string formats the `@format` decorator accepts.
|
Package strfmt holds the canonical catalogue of named string formats the `@format` decorator accepts. |
|
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 the OpenTelemetry-backed metrics surface for craftgo runtimes.
|
Package metrics is the OpenTelemetry-backed metrics surface for craftgo runtimes. |
|
otel
Package otel exposes the OpenTelemetry HTTP middleware + tracer bootstrap helpers for craftgo runtimes.
|
Package otel exposes the OpenTelemetry HTTP middleware + tracer bootstrap helpers for craftgo runtimes. |
|
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. |
Click to show internal directories.
Click to hide internal directories.