text

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package text implements the inner lexer and parser for text/template like templates

Index

Constants

This section is empty.

Variables

View Source
var DefaultFnMap = map[string]any{
	"eq":  tf_eq,
	"eq1": tf_eq1,
	"ne":  tf_ne,
	"lt":  tf_lt,
	"le":  tf_le,
	"gt":  tf_gt,
	"ge":  tf_ge,
}

Functions

func Parse

func Parse(e tmpl.TmplEnv, text string) error

Parse is used to parse one item (everything between one pair of {{ and }}

Types

type LexerPos

type LexerPos Lexer

func (*LexerPos) Column

func (l *LexerPos) Column() int

func (*LexerPos) Line

func (l *LexerPos) Line() int

func (*LexerPos) String

func (l *LexerPos) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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