functions

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllOptions

func GetAllOptions() []cel.EnvOption

func PHPDeserializeStringArray

func PHPDeserializeStringArray(s string) ([]string, error)

PHPDeserializeStringArray deserializes a PHP serialized string into a list of sorted strings.

func TitleCase

func TitleCase(s string) string

func ToUpper

func ToUpper(s string) string

Types

type ExprTestCase

type ExprTestCase struct {
	Expr     string
	Expected interface{}
	Inputs   map[string]any
}

type FunctionDefinition

type FunctionDefinition struct {
	Name      string
	Overloads []*OverloadDefinition
}

func GetAllFunctions

func GetAllFunctions() []*FunctionDefinition

func PHPDeserializeStringArrayFunc

func PHPDeserializeStringArrayFunc() *FunctionDefinition

func TitleCaseFunc

func TitleCaseFunc() *FunctionDefinition

func ToUpperFunc

func ToUpperFunc() *FunctionDefinition

func (*FunctionDefinition) GetOptions

func (fd *FunctionDefinition) GetOptions() []cel.EnvOption

type OverloadDefinition

type OverloadDefinition struct {
	Operator   string
	Args       []*cel.Type
	ResultType *cel.Type
	Unary      functions.UnaryOp
	Binary     functions.BinaryOp
	TestCases  []*ExprTestCase
}

Jump to

Keyboard shortcuts

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