1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/pkg/stdlib/objects/lib.go

17 lines
419 B
Go
Raw Normal View History

2018-10-07 23:58:22 +02:00
package objects
import "github.com/MontFerret/ferret/pkg/runtime/core"
func RegisterLib(ns core.Namespace) error {
2019-10-15 20:06:48 +02:00
return ns.RegisterFunctions(
core.NewFunctionsFromMap(map[string]core.Function{
"HAS": Has,
"KEYS": Keys,
"KEEP_KEYS": KeepKeys,
"MERGE": Merge,
"ZIP": Zip,
"VALUES": Values,
"MERGE_RECURSIVE": MergeRecursive,
}))
2018-10-07 23:58:22 +02:00
}