package
0.24.1
Repository: https://github.com/google/cel-go.git
Documentation: pkg.go.dev

# Functions

BinaryBinding provides the implementation of a binary overload.
DisableDeclaration indicates that the function declaration should be disabled, but the runtime function binding should be provided.
DisableTypeGuards disables automatically generated function invocation guards on direct overload calls.
ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
FunctionBinding provides the implementation of a variadic overload.
FunctionDeclToExprDecl converts a go-native function declaration into a protobuf-typed function declaration.
IncludeOverloads defines an OverloadSelector which allow-lists a set of overloads by their ids.
MaybeNoSuchOverload determines whether to propagate an error if one is provided as an argument, or to return an unknown set, or to produce a new error for a missing function signature.
MemberOverload defines a new receiver-style overload (or member function) with an overload id, argument types, and result type.
NewConstant creates a new constant declaration.
NewFunction creates a new function declaration with a set of function options to configure overloads and function definitions (implementations).
NewVariable creates a new variable declaration.
Overload defines a new global overload with an overload id, argument types, and result type.
OverloadIsNonStrict enables the function to be called with error and unknown argument values.
OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be successfully invoked.
SingletonBinaryBinding creates a singleton function definition to be used with all function overloads.
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads.
SingletonUnaryBinding creates a singleton function definition to be used for all function overloads.
TypeVariable creates a new type identifier for use within a types.Provider.
UnaryBinding provides the implementation of a unary overload.
VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.

# Structs

FunctionDecl defines a function name, overload set, and optionally a singleton definition for all overload instances.
OverloadDecl contains the definition of a single overload id with a specific signature, and an optional implementation.
VariableDecl defines a variable declaration which may optionally have a constant value.

# Type aliases

FunctionOpt defines a functional option for mutating a function declaration.
FunctionSubsetter subsets a function declaration or returns nil and false if the function subset was empty.
OverloadOpt is a functional option for configuring a function overload.
OverloadSelector selects an overload associated with a given function when it returns true.