functions

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 11 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 PHPSerializeStringArray added in v0.0.9

func PHPSerializeStringArray(input []string) (string, error)

PHPSerializeStringArray serializes a slice of strings into a PHP serialized string.

func Slugify added in v0.0.3

func Slugify(s string) string

func TitleCase

func TitleCase(s string) string

func ToLower added in v0.0.3

func ToLower(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 PHPSerializeStringArrayFunc added in v0.0.9

func PHPSerializeStringArrayFunc() *FunctionDefinition

func SlugifyFunc added in v0.0.3

func SlugifyFunc() *FunctionDefinition

func TitleCaseFunc

func TitleCaseFunc() *FunctionDefinition

func ToLowerFunc added in v0.0.3

func ToLowerFunc() *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