operators
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package operators defines the internal function names of operators.
All operators in the expression language are modelled as function calls.
Index¶
Constants¶
const (// Symbolic operators.Conditional = "_?_:_"LogicalAnd = "_&&_"LogicalOr = "_||_"LogicalNot = "!_"Equals = "_==_"NotEquals = "_!=_"Less = "_<_"LessEquals = "_<=_"Greater = "_>_"GreaterEquals = "_>=_"Add = "_+_"Subtract = "_-_"Multiply = "_*_"Divide = "_/_"Modulo = "_%_"Negate = "-_"Index = "_[_]"OptIndex = "_[?_]"OptSelect = "_?._"// Macros, must have a valid identifier.Has = "has"All = "all"Exists = "exists"ExistsOne = "exists_one"Map = "map"Filter = "filter"// Named operators, must not have be valid identifiers.NotStrictlyFalse = "@not_strictly_false"In = "@in"// Deprecated: named operators with valid identifiers.OldNotStrictlyFalse = "__not_strictly_false__"OldIn = "_in_")
String "names" for CEL operators.
Variables¶
This section is empty.
Functions¶
funcArity¶added inv0.12.2
Arity returns the number of argument the operator takes-1 is returned if an undefined symbol is provided
funcFindReverse¶added inv0.3.0
FindReverse returns the unmangled, text representation of the operator.
funcFindReverseBinaryOperator¶added inv0.3.1
FindReverseBinaryOperator returns the unmangled, text representation of a binary operator.
If the symbol does refer to an operator, but the operator does not have a display name theresult is false.
funcPrecedence¶added inv0.3.0
Precedence returns the operator precedence, where the higher the number indicateshigher precedence operations.
Types¶
This section is empty.