functions

package
v0.0.0-...-baef74e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: MIT Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncDepot

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

FuncDepot is a map of function name to it's real content wrapped in reflect.ValueOf()

func NewFuncDepot

func NewFuncDepot(namespace string) *FuncDepot

NewFuncDepot creates a new FuncDepot under the given `namespace`

func (*FuncDepot) Get

func (fc *FuncDepot) Get(key string) (reflect.Value, bool)

Get returns the function associated with the given key. The function is wrapped as reflect.Value so reflection can be used to determine attributes about this function

func (*FuncDepot) Map

func (fc *FuncDepot) Map() map[string]reflect.Value

Map returns the map of string to function

func (*FuncDepot) Set

func (fc *FuncDepot) Set(key string, v interface{})

Set stores the function under the name `key`

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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