mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
22382a0f61
* Added namespace builder * Fixed linting issues * Added extra check * Updated e2e lib * Renamed NamespaceBuilder to NamespaceContainer and changed func receivers * Renamed NewLib to RegisterLib
11 lines
215 B
Go
11 lines
215 B
Go
package collections
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
func RegisterLib(ns core.Namespace) error {
|
|
return ns.RegisterFunctions(core.Functions{
|
|
"LENGTH": Length,
|
|
"REVERSE": Reverse,
|
|
})
|
|
}
|