mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
12 lines
257 B
Go
12 lines
257 B
Go
package collections
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
func RegisterLib(ns core.Namespace) error {
|
|
return ns.RegisterFunctions(
|
|
core.NewFunctionsFromMap(map[string]core.Function{
|
|
"LENGTH": Length,
|
|
"REVERSE": Reverse,
|
|
}))
|
|
}
|