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

# Packages

Package ast declares data structures useful for parsed and checked abstract syntax trees.
Package containers defines types and functions for resolving qualified names within a namespace or type provided to CEL.
Package debug provides tools to print a parsed expression graph and adorn each expression element with additional metadata.
Package decls contains function and variable declaration structs and helper methods.
Package env provides a representation of a CEL environment.
Package functions defines the standard builtin functions supported by the interpreter.
Package operators defines the internal function names of operators.
Package overloads defines the internal overload identifiers for function and operator overloads.
Package runes provides interfaces and utilities for working with runes.
Package stdlib contains all of the standard library function declarations and definitions for CEL.
Package types contains the types, traits, and utilities common to all components of expression handling.

# Functions

NewError creates an error associated with an expression id with the given message at the given location.
NewErrors creates a new instance of the Errors type.
NewInfoSource creates a new Source from a SourceInfo.
NewLocation creates a new location.
NewStringSource creates a new Source from the given contents and description.
NewTextSource creates a new Source from the input text string.

# Constants

ConstCost is the cost of an operation that accesses a constant.
ListCreateBaseCost is the base cost of any operation that creates a new list.
MapCreateBaseCost is the base cost of any operation that creates a new map.
RegexStringLengthCostFactor is multiplied ot the length of a regex string pattern when computing the cost of applying the regex to a string of unit cost.
SelectAndIdentCost is the cost of an operation that accesses an identifier or performs a select.
StringTraversalCostFactor is multiplied to a length of a string when computing the cost of traversing the entire string once.
StructCreateBaseCost is the base cost of any operation that creates a new struct.

# Variables

NoLocation is a particular illegal location.

# Structs

Error type which references an expression id, a location within source, and a message.
Errors type which contains a list of errors observed during parsing.
SourceLocation helper type to manually construct a location.

# Interfaces

Location interface to represent a location within Source.
Source interface for filter source contents.