mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +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
16 lines
372 B
Go
16 lines
372 B
Go
package objects
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
func RegisterLib(ns core.Namespace) error {
|
|
return ns.RegisterFunctions(core.Functions{
|
|
"HAS": Has,
|
|
"KEYS": Keys,
|
|
"KEEP_KEYS": KeepKeys,
|
|
"MERGE": Merge,
|
|
"ZIP": Zip,
|
|
"VALUES": Values,
|
|
"MERGE_RECURSIVE": MergeRecursive,
|
|
})
|
|
}
|