Documentation ¶
Overview ¶
Package use provides simple namespaces for custom functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pkg ¶
type Pkg struct { // Prefix added to function name (can be empty). Prefix string // Function to translate function name (can be nil). MapName func(string) string // Map of functions. 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. MapNames is a function invoking for each key within Funcs to convert names using custom rules. This can be used to adapt names to use with different interpreters.
Click to show internal directories.
Click to hide internal directories.