modulepackage
0.0.0-20211215215226-4cdd4fd2847b
Repository: https://github.com/getlantern/goexpr.git
Documentation: pkg.go.dev
# Functions
Any is an expression that returns the first non-nil, non-empty string value from evaluating the exprs.
Array creates a new ArrayExpr.
No description provided by the author
Boolean accepts the operators AND, OR and returns a short-circuiting expression that evaluates left first and right second.
Concat joins a list of values using the first as a delimiter.
No description provided by the author
Decode compares the value of the first expression to a series of key/value pairs and returns the matching value.
No description provided by the author
Len calculates the length of the string representation of the given value.
No description provided by the author
P marks the wrapped expression as a One-to-One function.
No description provided by the author
Rand returns a random float64 between 0 (inclusive) and 1 (exclusive).
ReplaceAll replaces all occurrences of the regex with the replacement.
Split splits a given source on a delimiter and returns the value at the given index.
Substr takes a substring of the given source starting at the given index capped to the given length.
# Structs
ArrayExpr is just a placeholder expression for grouping some other expressions together.