Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LibList = map[string]FuncMap{} ErrNotLib = errors.New("'%s' is not a library") ErrNotFunction = errors.New("in lib %s, '%s' is not a function") ErrNumReturn = errors.New("in lib %s, '%s()' return incorrect number of values") ErrReturnTypes = errors.New("in lib %s, '%s()' does not return (interface{}, error)") )
View Source
var (
ErrNotALibrary = errors.New("'%s' is not a known library")
)
Functions ¶
func CallFunc ¶
Calls library function from fizz process. Uses reflect to get arg number and types from function. This means the types of params matter (but only here). Returns error if args or types dont match. Name of function and name given do not need to match.
func IncludeLibraries ¶
Imports all included libs to running fizz process
func PrintDocs ¶ added in v1.1.0
Prints functions of the given library to the terminal. Returns an error if not a known library name.
func VerifyFunction ¶ added in v0.6.0
Checks if function is valid. Returns error if not.
Types ¶
Click to show internal directories.
Click to hide internal directories.