function

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: BSD-3-Clause Imports: 7 Imported by: 69

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(f Function, params ...interface{}) (interface{}, error)

func IsFunctionPackage

func IsFunctionPackage(pkg string) bool

func Register

func Register(function Function) error

func ResolveAliases

func ResolveAliases()

func SetPackageAlias

func SetPackageAlias(pkg string, alias string)

Types

type Function

type Function interface {
	Name() string
	Sig() (paramTypes []data.Type, isVariadic bool)
	Eval(params ...interface{}) (interface{}, error)
}

func Get

func Get(id string) Function

Get gets specified function by id

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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