types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFunction             = fmt.Errorf("not a function")
	ErrReturnNoParameters      = fmt.Errorf("returns no parameters")
	ErrTooManyReturnParameters = fmt.Errorf("too many return parameters")
	ErrSecondReturnParameters  = fmt.Errorf("the second return parameter must be error")
)
View Source
var Default = NewEmptyProvider()

Functions

func CheckFunc

func CheckFunc(funcValue reflect.Value) (reflect.Type, error)

Types

type Provider added in v0.1.1

type Provider interface {
	Register(kind string, fun interface{}) error
	Find(kind string) (reflect.Value, bool)
	Kind(config []byte) string
	ForEach(f func(kind string, fun reflect.Value))
}

func NewEmptyProvider added in v0.1.1

func NewEmptyProvider() Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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