Documentation
¶
Overview ¶
Package main demonstrates how go-codex fits into a templ-based rendering pipeline. The codec handles decode and validation of raw API payloads; the resulting typed Go struct becomes the props passed to a templ component.
Pattern:
JSON bytes → map[string]any → ArticleResponse (codec) → ArticleProps (mapper) → templ component
Run with: go run ./examples/templ-mapper
Click to show internal directories.
Click to hide internal directories.