Versions in this module Expand all Collapse all v3 v3.24.89 Aug 18, 2026 Changes in this version + const CELLanguageID + const GoTemplateLanguageID + const JSONPathLanguageID + func BuildCEL(g *grammar.CELGrammar, spec CELSpec) (Language, Configuration) + func BuildEmbedded(h Host, spec GoTemplateSpec, d Delimiters) (Language, Configuration, error) + func BuildGoTemplate(spec GoTemplateSpec, d Delimiters) (Language, Configuration, error) + func BuildJSONPath() (Language, Configuration) + func EmbeddedLanguageID(h Host) string + func Render(b *Bundle) (map[string][]byte, error) + func ValidateCorpus(cases []ConformanceCase) error + type Action struct + Cases *Cases + Next string + Token string + Tokens []string + func (a Action) MarshalJSON() ([]byte, error) + type Bracket struct + Close string + Open string + Token string + type Bundle struct + Configurations map[string]Configuration + Conformance []ConformanceCase + Languages map[string]Language + Order []string + Spec Spec + func Build(docs map[string]string, extraCEL ...cel.EnvOption) (*Bundle, error) + type CELSpec struct + Functions []Function + Keywords []string + Macros []Macro + Namespaces []string + Types []string + Variables []string + func ExtractCEL(extra ...cel.EnvOption) (CELSpec, error) + func (s CELSpec) GlobalNames() []string + func (s CELSpec) MemberNames() []string + type Cases struct + func NewCases() *Cases + func (c *Cases) Default(action Action) *Cases + func (c *Cases) Groups(guard string, tokens ...string) *Cases + func (c *Cases) MarshalJSON() ([]byte, error) + func (c *Cases) Token(guard, token string) *Cases + func (c *Cases) When(guard string, action Action) *Cases + type Comments struct + BlockComment [2]string + LineComment string + type Configuration struct + AutoClosingPairs []Pair + Brackets [][2]string + Comments *Comments + SurroundingPairs []Pair + WordPattern string + type ConformanceCase struct + Boundaries []int + Language string + Origin string + Source string + func BuildConformance(docs map[string]string) ([]ConformanceCase, error) + type Delimiters struct + Left string + LeftComment string + Right string + RightComment string + TrimMarker string + type Function struct + Doc string + Examples []string + MemberOnly bool + Name string + Namespace string + Overloads []Overload + Signature string + type GoTemplateSpec struct + Builtins []string + Delimiters Delimiters + Functions []Function + Keywords []string + Namespaces []string + func ExtractGoTemplate() (GoTemplateSpec, error) + type Host string + const HostJSON + const HostText + const HostYAML + type Language struct + Attributes map[string][]string + Brackets []Bracket + DefaultToken string + ID string + Start string + TokenPostfix string + Tokenizer *States + func (l Language) MarshalJSON() ([]byte, error) + type Macro struct + ArgCount int + Doc string + Examples []string + Name string + ReceiverStyle bool + type Overload struct + Args []string + ID string + Member bool + Result string + type Pair struct + Close string + Open string + type Rule struct + Action Action + Include string + Regex string + func Include(state string) Rule + func Match(regex, token string) Rule + func MatchGroups(regex string, tokens ...string) Rule + func Pop(regex, token string) Rule + func Push(regex, token, next string) Rule + func (r Rule) MarshalJSON() ([]byte, error) + type Spec struct + CEL CELSpec + GoTemplate GoTemplateSpec + type States struct + func NewStates() *States + func (s *States) Add(name string, rules ...Rule) *States + func (s *States) MarshalJSON() ([]byte, error) + func (s *States) Names() []string + func (s *States) Rules(name string) []Rule