Versions in this module Expand all Collapse all v0 v0.1.0 Apr 5, 2024 Changes in this version + type Block struct + Label string + Name []string + func NewBlock(name []string, label string) *Block + func (b *Block) Body() *Body + func (b *Block) Tokens() []Token + type Body struct + func (b *Body) AppendBlock(block *Block) + func (b *Body) AppendFrom(goValue interface{}) + func (b *Body) AppendTokens(tokens []Token) + func (b *Body) Nodes() []tokenNode + func (b *Body) SetAttributeTokens(name string, tokens []Token) + func (b *Body) SetAttributeValue(name string, goValue interface{}) + func (b *Body) SetValueOverrideHook(valueOverrideHook ValueOverrideHook) + func (b *Body) Tokens() []Token + type Expr struct + func NewExpr() *Expr + func (e *Expr) Bytes() []byte + func (e *Expr) SetValue(goValue interface{}) + func (e *Expr) Tokens() []Token + func (e *Expr) WriteTo(w io.Writer) (int64, error) + type File struct + func NewFile() *File + func (f *File) Body() *Body + func (f *File) Bytes() []byte + func (f *File) Tokens() []Token + func (f *File) WriteTo(w io.Writer) (int64, error) + type Token struct + Lit string + Tok token.Token + type Tokenizer interface + AlloyTokenize func() []Token + type ValueOverrideHook = func(val interface{}) interface