functions

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgSpec

type ArgSpec struct {
	Types    []JpType
	Variadic bool
	Optional bool
}

type ExpRef

type ExpRef = func(interface{}) (interface{}, error)

type FunctionEntry

type FunctionEntry struct {
	Name      string
	Arguments []ArgSpec
	Handler   JpFunction
}

func GetDefaultFunctions

func GetDefaultFunctions() []FunctionEntry

type JpFunction

type JpFunction = func([]interface{}) (interface{}, error)

type JpType

type JpType string
const (
	JpNumber      JpType = "number"
	JpString      JpType = "string"
	JpArray       JpType = "array"
	JpObject      JpType = "object"
	JpArrayArray  JpType = "array[array]"
	JpArrayNumber JpType = "array[number]"
	JpArrayString JpType = "array[string]"
	JpExpref      JpType = "expref"
	JpAny         JpType = "any"
)

Jump to

Keyboard shortcuts

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