Versions in this module Expand all Collapse all v1 v1.0.3 May 12, 2023 v1.0.2 Mar 15, 2023 Changes in this version + func Error(err string, code string) *interErr v1.0.1 Mar 13, 2023 Changes in this version + type Env struct + func NewEnv(env []string) *Env + func (e *Env) Get(key string) string + func (e *Env) Has(key string) bool + type Mode int + const AllErrors + const Quick + type Node interface + String func() (string, error) + Type func() NodeType + type NodeType int + const NodeSubstitution + const NodeText + const NodeVariable + func (t NodeType) Type() NodeType + type Parser struct + Env *Env + Mode Mode + Name string + Restrict *Restrictions + func New(name string, env *Env, r *Restrictions) *Parser + func (p *Parser) Parse(text string) (string, error) + type Pos int + type Restrictions struct + NoDigit bool + NoEmpty bool + NoUnset bool + VarMatcher varMatcher + type SubstitutionNode struct + Default Node + ExpType itemType + Variable *VariableNode + func (t *SubstitutionNode) String() (string, error) + type TextNode struct + Text string + func NewText(text string) *TextNode + func (t *TextNode) String() (string, error) + type VariableNode struct + Env *Env + Ident string + Restrict *Restrictions + func NewVariable(ident string, env *Env, restrict *Restrictions) *VariableNode + func (t *VariableNode) String() (string, error)