render

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package render is the firewall between view models and Go source: view models go in, source fragments come out, and the only mechanism is text/template execution over the embedded .tmpl files. No naming or type decisions happen here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnumBlock

func EnumBlock(e *view.EnumBlock) (string, error)

EnumBlock renders one allowed-values const block.

func Registry

func Registry(r *view.Registry) (string, error)

Registry renders a family's identifier->factory registry.

func StructDecl

func StructDecl(s *view.Struct) (string, error)

StructDecl renders one struct's type declaration (fields only).

func StructFuncs

func StructFuncs(s *view.Struct) (string, error)

StructFuncs renders one struct's methods: the wire-identifier method and Validate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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