Versions in this module Expand all Collapse all v1 v1.1.0 Sep 14, 2018 v1.0.0 Dec 8, 2017 Changes in this version + var NoEmpty = &Restrictions + var NoUnset = &Restrictions + var Relaxed = &Restrictions + var Strict = &Restrictions + type Env []string + func (e Env) Get(name string) string + func (e Env) Has(name string) bool + func (e Env) Lookup(name string) (string, bool) + 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 + Name string + Restrict *Restrictions + func New(name string, env []string, r *Restrictions) *Parser + func (p *Parser) Parse(text string) (string, error) + type Pos int + type Restrictions struct + NoEmpty bool + NoUnset bool + 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)