mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
26 lines
689 B
Go
26 lines
689 B
Go
package strings
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
func NewLib() map[string]core.Function {
|
|
return map[string]core.Function{
|
|
"CONCAT": Concat,
|
|
"CONCAT_SEPARATOR": ConcatWithSeparator,
|
|
"CONTAINS": Contains,
|
|
"FIND_FIRST": FindFirst,
|
|
"FIND_LAST": FindLast,
|
|
"JSON_PARSE": JsonParse,
|
|
"JSON_STRINGIFY": JsonStringify,
|
|
"LEFT": Left,
|
|
"LIKE": Like,
|
|
"LOWER": Lower,
|
|
"LTRIM": LTrim,
|
|
"RIGHT": RTrim,
|
|
"SPLIT": Split,
|
|
"SUBSTITUTE": Substitute,
|
|
"SUBSTRING": Substring,
|
|
"TRIM": Trim,
|
|
"UPPER": Upper,
|
|
}
|
|
}
|