functions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRegistry

func DefaultRegistry() function.InterpreterRegistry

func Len

func Len(

	value interface{},
) int64

Len returns with the length of the variable For strings it means the count of UTF-8 characters For arrays and maps it means the number of items/entries @function

func String

func String(value interface{}) (string, error)

String converts the given value to a string @function

Types

type LenInterpreter

type LenInterpreter struct {
}

LenInterpreter is the Conflow interpreter for the Len function

func (LenInterpreter) Eval

func (i LenInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)

Eval returns with the result of the function

func (LenInterpreter) Schema

func (i LenInterpreter) Schema() schema.Schema

type StringInterpreter

type StringInterpreter struct {
}

StringInterpreter is the Conflow interpreter for the String function

func (StringInterpreter) Eval

func (i StringInterpreter) Eval(ctx interface{}, args []interface{}) (interface{}, error)

Eval returns with the result of the function

func (StringInterpreter) Schema

func (i StringInterpreter) Schema() schema.Schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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