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
Method
ShouldRepeat
()
patcher/operator_override.go:52
↓ 1 callers
Function
Slice
(array, from, to any)
vm/runtime/runtime.go:164
↓ 1 callers
Method
SliceNode
(node *ast.SliceNode)
compiler/compiler.go:761
↓ 1 callers
Function
SortValues
SortValues makes the internal sortValues function available to the test package.
internal/spew/internal_test.go:82
↓ 1 callers
Function
Sprint
Sprint is a wrapper for fmt.Sprint that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It ret
internal/spew/spew.go:114
↓ 1 callers
Function
Sprintln
Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it were passed with a default Formatter interface returned by NewFormatter. It
internal/spew/spew.go:136
↓ 1 callers
Function
StartDebugger
(program *Program, env any)
debug/debugger.go:16
↓ 1 callers
Method
String
()
ast/print.go:40
↓ 1 callers
Method
String
()
ast/print.go:142
↓ 1 callers
Method
StringNode
(node *ast.StringNode)
compiler/compiler.go:411
↓ 1 callers
Function
Subset
Subset asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. ass
internal/testify/require/require.go:1916
↓ 1 callers
Function
Subsetf
Subsetf asserts that the specified list(array, slice...) or map contains all elements given in the specified subset list(array, slice...) or map. as
internal/testify/require/require.go:1931
↓ 1 callers
Function
Subtract
(a, b interface{})
vm/runtime/helpers[generated].go:2429
↓ 1 callers
Function
ToBool
(a any)
vm/runtime/runtime.go:416
↓ 1 callers
Function
ToInt64
(a any)
vm/runtime/runtime.go:354
↓ 1 callers
Method
UnaryNode
(node *ast.UnaryNode)
compiler/compiler.go:427
↓ 1 callers
Method
VariableDeclaratorNode
(node *ast.VariableDeclaratorNode)
compiler/compiler.go:1241
↓ 1 callers
Method
Visit
(node *Node)
ast/visitor.go:6
↓ 1 callers
Function
WarnOnAny
WarnOnAny tells the compiler to warn if expression return any type.
expr.go:121
↓ 1 callers
Method
Width
()
internal/spew/internal_test.go:46
↓ 1 callers
Function
WithinDurationf
WithinDurationf asserts that the two times are within duration delta of each other. assert.WithinDurationf(t, time.Now(), time.Now(), 10*time.Second
internal/testify/require/require.go:1983
↓ 1 callers
Function
WithinRange
WithinRange asserts that a time is within a time range (inclusive). assert.WithinRange(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add(t
internal/testify/require/require.go:1996
↓ 1 callers
Function
WithinRangef
WithinRangef asserts that a time is within a time range (inclusive). assert.WithinRangef(t, time.Now(), time.Now().Add(-time.Second), time.Now().Add
internal/testify/require/require.go:2009
↓ 1 callers
Method
Wrap
(err error)
file/error.go:70
↓ 1 callers
Function
WriteContextDiff
Compare two sequences of lines; generate the delta as a context diff. Context diffs are a compact way of showing line changes and a few lines of cont
internal/difflib/difflib.go:677
↓ 1 callers
Function
WriteUnifiedDiff
Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of cont
internal/difflib/difflib.go:562
↓ 1 callers
Function
Zerof
Zerof asserts that i is the zero value for its type.
internal/testify/require/require.go:2031
↓ 1 callers
Function
addArrayDumpTests
()
internal/spew/dump_test.go:305
↓ 1 callers
Function
addArrayFormatterTests
()
internal/spew/format_test.go:500
↓ 1 callers
Function
addBoolDumpTests
()
internal/spew/dump_test.go:223
↓ 1 callers
Function
addBoolFormatterTests
()
internal/spew/format_test.go:349
↓ 1 callers
Function
addCgoDumpTests
()
internal/spew/dumpcgo_test.go:33
↓ 1 callers
Function
addChanDumpTests
()
internal/spew/dump_test.go:797
↓ 1 callers
Function
addChanFormatterTests
()
internal/spew/format_test.go:1132
↓ 1 callers
Function
addCircularDumpTests
()
internal/spew/dump_test.go:866
↓ 1 callers
Function
addCircularFormatterTests
()
internal/spew/format_test.go:1258
↓ 1 callers
Function
addComplexDumpTests
()
internal/spew/dump_test.go:277
↓ 1 callers
Function
addComplexFormatterTests
()
internal/spew/format_test.go:448
↓ 1 callers
Function
addErrorDumpTests
()
internal/spew/dump_test.go:944
↓ 1 callers
Function
addErrorFormatterTests
()
internal/spew/format_test.go:1397
↓ 1 callers
Function
addFloatDumpTests
()
internal/spew/dump_test.go:249
↓ 1 callers
Function
addFloatFormatterTests
()
internal/spew/format_test.go:396
↓ 1 callers
Function
addFuncDumpTests
()
internal/spew/dump_test.go:823
↓ 1 callers
Function
addFuncFormatterTests
()
internal/spew/format_test.go:1179
↓ 1 callers
Function
addIntDumpTests
()
internal/spew/dump_test.go:89
↓ 1 callers
Function
addIntFormatterTests
()
internal/spew/format_test.go:95
↓ 1 callers
Function
addInterfaceDumpTests
()
internal/spew/dump_test.go:524
↓ 1 callers
Function
addInterfaceFormatterTests
()
internal/spew/format_test.go:720
↓ 1 callers
Function
addMapDumpTests
()
internal/spew/dump_test.go:550
↓ 1 callers
Function
addMapFormatterTests
()
internal/spew/format_test.go:767
↓ 1 callers
Function
addPanicDumpTests
()
internal/spew/dump_test.go:929
↓ 1 callers
Function
addPanicFormatterTests
()
internal/spew/format_test.go:1370
↓ 1 callers
Function
addPassthroughFormatterTests
()
internal/spew/format_test.go:1424
↓ 1 callers
Function
addSliceDumpTests
()
internal/spew/dump_test.go:403
↓ 1 callers
Function
addSliceFormatterTests
()
internal/spew/format_test.go:585
↓ 1 callers
Function
addStringDumpTests
()
internal/spew/dump_test.go:508
↓ 1 callers
Function
addStringFormatterTests
()
internal/spew/format_test.go:693
↓ 1 callers
Function
addStructDumpTests
()
internal/spew/dump_test.go:651
↓ 1 callers
Function
addStructFormatterTests
()
internal/spew/format_test.go:886
↓ 1 callers
Function
addUintDumpTests
()
internal/spew/dump_test.go:156
↓ 1 callers
Function
addUintFormatterTests
()
internal/spew/format_test.go:222
↓ 1 callers
Function
addUintptrDumpTests
()
internal/spew/dump_test.go:742
↓ 1 callers
Function
addUintptrFormatterTests
()
internal/spew/format_test.go:1036
↓ 1 callers
Function
addUnsafePointerDumpTests
()
internal/spew/dump_test.go:769
↓ 1 callers
Function
addUnsafePointerFormatterTests
()
internal/spew/format_test.go:1084
↓ 1 callers
Method
addVariable
(name string)
compiler/compiler.go:169
↓ 1 callers
Method
allocScope
allocScope returns a pointer to a Scope from the pool, growing the pool if needed. Callers must set Len and exactly one of: Ints, Floats, Strings, Any
vm/vm.go:700
↓ 1 callers
Function
applySumPredicate
applySumPredicate tries to compute the result of sum(m..n, predicate) at compile time. Returns (result, true) if optimization is possible, (0, false)
optimizer/sum_range.go:113
↓ 1 callers
Function
arrayEqualCases
(xs ...[]string)
vm/runtime/helpers/main.go:93
↓ 1 callers
Method
arrayNode
(node *ast.ArrayNode)
checker/checker.go:1315
↓ 1 callers
Method
beginScope
(name string, index int)
compiler/compiler.go:1259
↓ 1 callers
Method
binaryNode
(node *ast.BinaryNode)
checker/checker.go:320
↓ 1 callers
Method
buildDefaultFormat
buildDefaultFormat recreates the original format string without precision and width information to pass in to fmt.Sprintf in the case of an unrecogniz
internal/spew/format.go:47
↓ 1 callers
Method
builtinNode
(node *ast.BuiltinNode)
checker/checker.go:695
↓ 1 callers
Function
calcRelativeError
(expected, actual interface{})
internal/testify/assert/assertions.go:1461
↓ 1 callers
Method
call
(fn any, kind int)
vm/func_types[generated].go:103
↓ 1 callers
Method
callNode
(node *ast.CallNode)
checker/checker.go:638
↓ 1 callers
Function
callerName
callerName gives the function name (qualified with a package path) for the caller after skip frames (where 0 means the current function).
internal/testify/assert/assertion_compare_test.go:117
↓ 1 callers
Function
canSortSimply
canSortSimply tests whether a reflect.Kind is a primitive that can be sorted directly, or whether it should be considered for sorting by surrogate key
internal/spew/common.go:256
↓ 1 callers
Method
chainB
()
internal/difflib/difflib.go:151
↓ 1 callers
Method
chainNode
(node *ast.ChainNode)
checker/checker.go:511
↓ 1 callers
Method
check
(tree *parser.Tree)
checker/checker.go:125
↓ 1 callers
Method
checkBuiltinGet
(node *ast.BuiltinNode)
checker/checker.go:959
↓ 1 callers
Function
checkFunc
(fn *builtin.Function, name string, operator string)
patcher/operator_override.go:139
↓ 1 callers
Function
checkType
(fnType nature.Nature, fn string, operator string)
patcher/operator_override.go:129
↓ 1 callers
Function
combinedOperator
(fn, op string)
optimizer/predicate_combination.go:46
↓ 1 callers
Function
compareTokens
(i1, i2 []Token)
parser/lexer/lexer_test.go:364
↓ 1 callers
Method
conditionalNode
(node *ast.ConditionalNode)
checker/checker.go:1283
↓ 1 callers
Method
constructOrigFormat
constructOrigFormat recreates the original format string including precision and width information to pass along to the standard fmt package. This al
internal/spew/format.go:65
↓ 1 callers
Method
createMemberNode
(n *MemberNode, loc file.Location)
parser/parser.go:127
↓ 1 callers
Function
createNestedMapExpr
(t *testing.T, depth int)
vm/vm_test.go:1358
↓ 1 callers
Method
derefParam
(in reflect.Type, param ast.Node)
compiler/compiler.go:1325
↓ 1 callers
Function
dump
(v reflect.Value, ident string)
ast/dump.go:13
↓ 1 callers
Method
dumpPtr
dumpPtr handles formatting of pointers by indirecting them as necessary.
internal/spew/dump.go:81
↓ 1 callers
Method
dumpSlice
dumpSlice handles formatting of arrays and slices. Byte (uint8 under reflection) arrays and slices are dumped in hexdump -C fashion.
internal/spew/dump.go:161
↓ 1 callers
Method
emitEOF
()
parser/lexer/lexer.go:121
↓ 1 callers
Method
endScope
()
compiler/compiler.go:1263
↓ 1 callers
Function
estimateFnArgsCount
estimateFnArgsCount inspects a *Program and estimates how many function arguments will be required to run it.
vm/vm.go:795
↓ 1 callers
Function
extractCodeBlocksWithTitle
(markdown string)
test/examples/markdown.go:13
↓ 1 callers
Function
extractPointerAndConstantWithPosition
extractPointerAndConstantWithPosition extracts pointer (#) and integer constant from a binary node. Returns (pointer, constant, pointerOnLeft) or (nil
optimizer/sum_range.go:156
← previous
next →
801–900 of 2,191, ranked by callers