templateutil

package module
v0.0.0-...-9c8f72d Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 3 Imported by: 0

README

template util

about

godoc.org

Utility functions for text/template/parse

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeNilError = fmt.Errorf("node is nil")
)

Functions

func Inspect

func Inspect(node parse.Node, f func(parse.Node) bool)

func Line

func Line(root, target parse.Node) (int, error)

func Walk

func Walk(node parse.Node, f Visitor)

Types

type Visitor

type Visitor interface {
	Visit(node parse.Node) (w Visitor)
}

Jump to

Keyboard shortcuts

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