funcmap

package
v0.0.0-...-bb52808 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FuncDocTemplates = `` /* 575-byte string literal not displayed */

)

Functions

func AddFunc

func AddFunc(f *Func)

Types

type Func

type Func struct {
	Func interface{}
	Doc  FuncDoc
}

type FuncDoc

type FuncDoc struct {
	Name    string
	Text    string
	Example string

	NestedFuncs []FuncDoc
}

func (FuncDoc) Template

func (fd FuncDoc) Template() string

type Functions

type Functions []*Func
var (
	Global Functions
)

func (Functions) AddFunc

func (fs Functions) AddFunc(f *Func) (Functions, error)

func (Functions) FuncMap

func (fs Functions) FuncMap() map[string]interface{}

func (Functions) MustAddFunc

func (fs Functions) MustAddFunc(f *Func) Functions

Jump to

Keyboard shortcuts

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