function

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AbsFunction = Function{
		Name:         "abs",
		Arity:        1,
		FunctionImpl: absImpl,
		ParamsType:   []uint{datatype.NumeberType},
		VerifyArgs: func(arguments []interface{}) error {
			return nil
		},
	}
)

Functions

Functions

This section is empty.

Types

type Function

type Function struct {
	Name         string
	Arity        int
	FunctionImpl func(args []interface{}) (interface{}, error)
	ParamsType   []uint
	VerifyArgs   func(arguments []interface{}) error
}

Function struct

func (*Function) CheckNumberOfArgs

func (f *Function) CheckNumberOfArgs(arguments []interface{}) bool

CheckNumberOfArgs in the function

func (*Function) CheckTypeOfArgs

func (f *Function) CheckTypeOfArgs(arguments []interface{}) bool

CheckTypeOfArgs in the function

Jump to

Keyboard shortcuts

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