grapeFunc

package
v0.0.0-...-5771147 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastBind

func FastBind(cmd interface{}, fun MapHandler) error

快速绑定

func FastCall

func FastCall(cmd interface{}, args ...interface{}) error

快速调用

func FastCallR

func FastCallR(cmd interface{}, args ...interface{}) (result []interface{}, err error)

Types

type FuncMap

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

func NewMap

func NewMap() *FuncMap

func (*FuncMap) Bind

func (m *FuncMap) Bind(cmd interface{}, fun MapHandler) error

func (*FuncMap) Call

func (m *FuncMap) Call(cmd interface{}, args ...interface{}) error

无返回参数

func (*FuncMap) CallR

func (m *FuncMap) CallR(cmd interface{}, args ...interface{}) (result []interface{}, err error)

带有返回参数

type MapHandler

type MapHandler interface{}

Jump to

Keyboard shortcuts

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