examples/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT

Directories

Path Synopsis
Package adapters-mqtt demonstrates wiring the api/events builder to Paho MQTT using the adapters/mqtt adapter.
Package adapters-mqtt demonstrates wiring the api/events builder to Paho MQTT using the adapters/mqtt adapter.
Package adapters-nethttp demonstrates wiring the api/rest builder to a standard net/http server using the adapters/nethttp adapter.
Package adapters-nethttp demonstrates wiring the api/rest builder to a standard net/http server using the adapters/nethttp adapter.
Package api-events demonstrates the api/events builder: define channels with codec-backed payload types, get typed Decode/Encode helpers, and generate a full AsyncAPI 2.6 spec — all without importing any messaging library.
Package api-events demonstrates the api/events builder: define channels with codec-backed payload types, get typed Decode/Encode helpers, and generate a full AsyncAPI 2.6 spec — all without importing any messaging library.
Package api-rest demonstrates the api/rest builder: define routes with codec-backed types, get typed Decode/Encode helpers, and generate a full OpenAPI 3.1 spec — all without importing net/http or any HTTP framework.
Package api-rest demonstrates the api/rest builder: define routes with codec-backed types, get typed Decode/Encode helpers, and generate a full OpenAPI 3.1 spec — all without importing net/http or any HTTP framework.
Package decode-errors demonstrates multi-field validation errors in go-codex.
Package decode-errors demonstrates multi-field validation errors in go-codex.
Package error-types demonstrates every structured error type in go-codex.
Package error-types demonstrates every structured error type in go-codex.
Package event-driven demonstrates generating a full AsyncAPI 2.6 document from channel descriptors and Codec-derived schemas using the render/asyncapi package.
Package event-driven demonstrates generating a full AsyncAPI 2.6 document from channel descriptors and Codec-derived schemas using the render/asyncapi package.
Package formats demonstrates the builtin format constraints in validate/.
Package formats demonstrates the builtin format constraints in validate/.
Package main demonstrates where go-codex shines in a comment moderation use case: a single codec definition simultaneously escapes HTML, enforces length limits, and documents the schema — all derived from one value.
Package main demonstrates where go-codex shines in a comment moderation use case: a single codec definition simultaneously escapes HTML, enforces length limits, and documents the schema — all derived from one value.
Package openapi demonstrates generating an OpenAPI components/schemas section from Codec definitions using the render/openapi package.
Package openapi demonstrates generating an OpenAPI components/schemas section from Codec definitions using the render/openapi package.
Package rest-api demonstrates generating a full OpenAPI 3.1 document from route descriptors and Codec-derived schemas using the render/openapi package.
Package rest-api demonstrates generating a full OpenAPI 3.1 document from route descriptors and Codec-derived schemas using the render/openapi package.
Package main demonstrates how go-codex fits into a templ-based rendering pipeline.
Package main demonstrates how go-codex fits into a templ-based rendering pipeline.
Package main shows how to use Codec.Validate and Format.Validate for explicit bidirectional validation.
Package main shows how to use Codec.Validate and Format.Validate for explicit bidirectional validation.

Jump to

Keyboard shortcuts

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