parse

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package parse provides a mockable wrapper for text/template/parse.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) IsEmptyTree

func (*Impl) IsEmptyTree(n parse.Node) bool

func (*Impl) New

func (*Impl) New(name string, funcs ...map[string]any) *parse.Tree

func (*Impl) NewIdentifier

func (*Impl) NewIdentifier(ident string) *parse.IdentifierNode

func (*Impl) Parse

func (*Impl) Parse(name string, text string, leftDelim string, rightDelim string, funcs ...map[string]any) (map[string]*parse.Tree, error)

type Interface

type Interface interface {
	IsEmptyTree(n parse.Node) bool
	New(name string, funcs ...map[string]any) *parse.Tree
	NewIdentifier(ident string) *parse.IdentifierNode
	Parse(name string, text string, leftDelim string, rightDelim string, funcs ...map[string]any) (map[string]*parse.Tree, error)
}

Jump to

Keyboard shortcuts

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