templ-mapper

command
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 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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