use

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncMap

type FuncMap template.FuncMap

FuncMap is a template.FuncMap, see docs there. Redefined to minimize imports.

func Packages

func Packages(pkgs ...Pkg) FuncMap

Packages collects functions from all "packages" in arguments into one FuncMap, prefixing every function name in "package" with Pkg.Prefix.

type Pkg

type Pkg struct {
	Prefix string
	Funcs  FuncMap
}

Pkg described single "package" of related functions. "Package" can be included into the map with every function, prefixed with Prefix. This is namespaces mechanism for poor.

Jump to

Keyboard shortcuts

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