1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-18 23:47:48 +02:00
ferret/pkg/stdlib/objects/lib.go

16 lines
375 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 10:40:36 +02:00
return ns.RegisterFunctions(core.FunctionsMap{
2018-10-25 14:01:25 +02:00
"HAS": Has,
"KEYS": Keys,
2019-02-02 04:39:28 +02:00
"KEEP_KEYS": KeepKeys,
2018-10-25 14:01:25 +02:00
"MERGE": Merge,
"ZIP": Zip,
"VALUES": Values,
"MERGE_RECURSIVE": MergeRecursive,
})
2018-10-07 23:58:22 +02:00
}