templater

package
v0.0.0-...-dcb838f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: BSD-3-Clause Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const TIMES = 42

Variables

View Source
var ModifyFuncs = map[string]interface{}{
	"replace": replace,
	"same":    same,
	"reverse": reverse,
}

Functions

func MatchTemplate

func MatchTemplate(s string, context *gabs.Container) (string, error)

func ModifyExec

func ModifyExec(s interface{}, context *gabs.Container) (interface{}, error)

func Template

func Template(s string, context *gabs.Container) (string, error)

Types

type Modify

type Modify struct {
	// contains filtered or unexported fields
}

func (Modify) Call

func (m Modify) Call(name string, params ...interface{}) (reflect.Value, error)

func (Modify) Exec

func (m Modify) Exec(s string) (interface{}, error)

func (Modify) SetFunc

func (m Modify) SetFunc(name string, function interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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