Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expr-lang/expr
/ functions
Functions
2,191 in github.com/expr-lang/expr
⨍
Functions
2,191
◇
Types & classes
379
↓ 1 callers
Function
fieldByIndex
(v reflect.Value, field *Field)
vm/runtime/runtime.go:128
↓ 1 callers
Function
fieldName
(fieldName string, tag reflect.StructTag)
checker/nature/utils.go:9
↓ 1 callers
Function
fields
(t *Type)
docgen/markdown.go:81
↓ 1 callers
Method
findLongestMatch
Find longest matching block in a[alo:ahi] and b[blo:bhi]. If IsJunk is not defined: Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where
internal/difflib/difflib.go:224
↓ 1 callers
Method
findSuitableOperatorOverloadInFunctions
(l, r reflect.Type)
patcher/operator_override.go:82
↓ 1 callers
Method
findSuitableOperatorOverloadInTypes
(l, r reflect.Type)
patcher/operator_override.go:64
↓ 1 callers
Function
flatten
(arg reflect.Value, depth int)
builtin/lib.go:526
↓ 1 callers
Method
format
()
file/error.go:74
↓ 1 callers
Function
formatListDiff
(listA, listB interface{}, extraA, extraB []interface{})
internal/testify/assert/assertions.go:1157
↓ 1 callers
Method
formatPtr
formatPtr handles formatting of pointers by indirecting them as necessary.
internal/spew/format.go:105
↓ 1 callers
Method
getMethodset
(t reflect.Type, k reflect.Kind)
checker/nature/nature.go:171
↓ 1 callers
Method
getSlow
(c *Cache, name string)
checker/nature/nature.go:404
↓ 1 callers
Method
grow
()
internal/ring/ring.go:69
↓ 1 callers
Function
humanizeBytes
(b uint64)
repl/repl.go:134
↓ 1 callers
Method
identifierNode
(node *ast.IdentifierNode)
checker/checker.go:249
↓ 1 callers
Function
indentMessageLines
Aligns the provided message so that all lines after the first line start at the same location as the first line. Assumes that the first line starts at
internal/testify/assert/assertions.go:305
↓ 1 callers
Function
initSpewTests
()
internal/spew/spew_test.go:126
↓ 1 callers
Function
invalidateTrees
(trees ...*parser.Tree)
checker/checker_bench_test.go:104
↓ 1 callers
Function
isPointerPlusAcc
isPointerPlusAcc checks if the node represents `# + #acc` pattern
optimizer/sum_range.go:71
↓ 1 callers
Function
isPrivate
(s string)
ast/dump.go:57
↓ 1 callers
Function
labeledOutput
labeledOutput returns a string consisting of the provided labeledContent. Each labeled output is appended in the following manner: \t{{label}}:{{ali
internal/testify/assert/assertions.go:386
↓ 1 callers
Method
lookupVariable
(name string)
compiler/compiler.go:1267
↓ 1 callers
Method
mapNode
(node *ast.MapNode)
checker/checker.go:1333
↓ 1 callers
Function
mean
(depth int, args ...any)
builtin/lib.go:348
↓ 1 callers
Function
median
(depth int, args ...any)
builtin/lib.go:445
↓ 1 callers
Method
memberNode
(node *ast.MemberNode)
checker/checker.go:515
↓ 1 callers
Function
messageFromMsgAndArgs
(msgAndArgs ...interface{})
internal/testify/assert/assertions.go:284
↓ 1 callers
Method
method
(c *Cache, name string)
checker/nature/utils.go:200
↓ 1 callers
Function
newValuesSorter
newValuesSorter initializes a valuesSorter instance, which holds a set of surrogate keys on which the data should be sorted. It uses flags in ConfigS
internal/spew/common.go:228
↓ 1 callers
Method
nodeParent
()
compiler/compiler.go:107
↓ 1 callers
Method
optimize
()
compiler/compiler.go:1337
↓ 1 callers
Method
pairNode
(node *ast.PairNode)
checker/checker.go:1340
↓ 1 callers
Method
parseArrayExpression
(token Token)
parser/parser.go:700
↓ 1 callers
Method
parseComparison
(left Node, token Token, precedence int)
parser/parser.go:907
↓ 1 callers
Method
parseConditional
(node Node)
parser/parser.go:366
↓ 1 callers
Method
parseConditionalIf
()
parser/parser.go:338
↓ 1 callers
Function
parseLabeledOutput
parseLabeledOutput does the inverse of labeledOutput - it takes a formatted output string and turns it back into a slice of labeledContent.
internal/testify/assert/assertions_test.go:2928
↓ 1 callers
Method
parseMapExpression
(token Token)
parser/parser.go:724
↓ 1 callers
Method
parsePredicate
()
parser/parser.go:668
↓ 1 callers
Method
parsePrimary
()
parser/parser.go:394
↓ 1 callers
Method
parseSecondary
()
parser/parser.go:447
↓ 1 callers
Method
parseVariableDeclaration
()
parser/parser.go:323
↓ 1 callers
Method
pointerNode
(node *ast.PointerNode)
checker/checker.go:1225
↓ 1 callers
Method
predicateNode
(node *ast.PredicateNode)
checker/checker.go:1212
↓ 1 callers
Method
scanEscape
(quote rune)
parser/lexer/lexer.go:203
↓ 1 callers
Method
scanNumber
()
parser/lexer/state.go:80
↓ 1 callers
Method
scanRawString
(quote rune)
parser/lexer/lexer.go:271
↓ 1 callers
Method
sequenceNode
(node *ast.SequenceNode)
checker/checker.go:1272
↓ 1 callers
Method
skipSpaces
()
parser/lexer/lexer.go:158
↓ 1 callers
Method
sliceNode
(node *ast.SliceNode)
checker/checker.go:605
↓ 1 callers
Function
stringNode
(_ int)
test/gen/gen.go:191
↓ 1 callers
Function
sumArrayFold
(array *ArrayNode)
optimizer/sum_array.go:22
↓ 1 callers
Function
testAutogeneratedFunction
()
internal/testify/assert/assertions_test.go:2001
↓ 1 callers
Function
testRing
(t *testing.T, r *Ring[T], ops ...ringOp[T])
internal/ring/ring_test.go:85
↓ 1 callers
Function
testRingOp
(t *testing.T, r *Ring[T], op ringOp[T])
internal/ring/ring_test.go:96
↓ 1 callers
Method
toFloatNode
(number float64)
parser/parser.go:561
↓ 1 callers
Function
traverseAndReplaceIntegerNodesWithFloatNodes
(node *ast.Node, newNature Nature)
checker/checker.go:1175
↓ 1 callers
Function
traverseAndReplaceIntegerNodesWithIntegerNodes
(node *ast.Node, newNature Nature)
checker/checker.go:1193
↓ 1 callers
Method
unaryNode
(node *ast.UnaryNode)
checker/checker.go:291
↓ 1 callers
Function
unescape
Unescape takes a quoted string, unquotes, and unescapes it.
parser/lexer/utils.go:15
↓ 1 callers
Function
unescapeByteChar
unescapeByteChar unescapes a single character or escape sequence from a bytes literal. Unlike unescapeChar, this only supports byte-level escapes (\x,
parser/lexer/utils.go:261
↓ 1 callers
Function
unescapeBytes
unescapeBytes takes a quoted string, unquotes, and unescapes it as bytes.
parser/lexer/utils.go:58
↓ 1 callers
Function
unescapeChar
unescapeChar takes a string input and returns the following info: value - the escaped unicode rune at the front of the string. multibyte - whether
parser/lexer/utils.go:110
↓ 1 callers
Method
use
(t reflect.Type, ops ...option)
docgen/docgen.go:122
↓ 1 callers
Function
valueSortLess
valueSortLess returns whether the first value should sort before the second value. It is used by valueSorter.Less as part of the sort.Interface imple
internal/spew/common.go:295
↓ 1 callers
Method
variableDeclaratorNode
(node *ast.VariableDeclaratorNode)
checker/checker.go:1250
Method
AFunc
AFunc is a method what goes before Func in the alphabet.
compiler/compiler_test.go:43
Function
Abs
(x any)
builtin/lib.go:60
Method
Add
(a int, b *int)
test/issues/688/issue_test.go:17
Method
Add
(a, b int)
test/mock/mock.go:116
Method
Add
(a, b float64)
test/playground/env.go:135
Method
Age
()
test/playground/env.go:13
Method
AndCondition
(a, b Condition)
test/operator/issues584/issues584_test.go:28
Method
AndConditions
(a Conditions, b Condition)
test/operator/issues584/issues584_test.go:32
Method
Any
(x any)
test/issues/688/issue_test.go:25
Method
AsAny
()
patcher/value/value_example_test.go:19
Method
AsAny
()
patcher/value/value_test.go:20
Method
AsAny
()
patcher/value/value_test.go:36
Method
AsAny
()
patcher/value/value_test.go:48
Method
AsAny
()
patcher/value/value_test.go:64
Method
AsArray
()
patcher/value/value_test.go:72
Method
AsInt
()
patcher/value/value_example_test.go:15
Method
AsInt
()
patcher/value/value_test.go:16
Method
AsInt
()
patcher/value/value_test.go:28
Method
AsMap
()
patcher/value/value_test.go:80
Method
AsString
()
patcher/value/value_test.go:44
Method
AsString
()
patcher/value/value_test.go:56
Method
AuthorEmail
()
test/playground/env.go:85
Method
Bar
()
test/interface/interface_method_test.go:31
Method
Bar
()
test/operator/issues584/issues584_test.go:22
Method
Bar
()
test/deref/deref_test.go:119
Function
BenchmarkBytesEqual
(b *testing.B)
internal/testify/assert/assertions_test.go:2498
Function
BenchmarkCall_callTyped
(b *testing.B)
test/bench/bench_call_test.go:15
Function
BenchmarkCall_eval
(b *testing.B)
test/bench/bench_call_test.go:41
Function
BenchmarkChecker
(b *testing.B)
checker/checker_bench_test.go:15
Function
BenchmarkCountGtZero
Benchmarks for count > 0 → any
optimizer/count_any_test.go:117
Function
BenchmarkCountGtZeroLargeEarlyMatch
(b *testing.B)
optimizer/count_any_test.go:127
Function
BenchmarkCountGtZeroNoMatch
(b *testing.B)
optimizer/count_any_test.go:137
Function
BenchmarkCountGteOneEarlyMatch
Benchmarks for count >= 1 → any
optimizer/count_any_test.go:148
Function
BenchmarkCountGteOneNoMatch
(b *testing.B)
optimizer/count_any_test.go:158
← previous
next →
901–1,000 of 2,191, ranked by callers