generators

package
v0.0.0-...-7c3d127 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeEnumDecl

func AttributeEnumDecl(attribute spec.AttributeTypeEnum) string

func BuildAttributes

func BuildAttributes(e *spec.Element) func() (*template.Template, ImportSet)

func SourceHeader

func SourceHeader(w io.Writer, pkg string, e *spec.Element, children ...TemplateFunc) error

Types

type ImportSet

type ImportSet map[string]struct{}

func AttributeBaseFunc

func AttributeBaseFunc() (*template.Template, ImportSet)

func BaseCondFunc

func BaseCondFunc() (*template.Template, ImportSet)

func BaseFunc

func BaseFunc() (*template.Template, ImportSet)

func BaseStruct

func BaseStruct() (*template.Template, ImportSet)

func BaseTernaryFunc

func BaseTernaryFunc() (*template.Template, ImportSet)

func RenderFunc

func RenderFunc() (*template.Template, ImportSet)

func (ImportSet) Add

func (is ImportSet) Add(i string) ImportSet

func (ImportSet) Merge

func (is ImportSet) Merge(other ImportSet)

type TemplateFunc

type TemplateFunc func() (*template.Template, ImportSet)

Jump to

Keyboard shortcuts

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