1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-07-05 00:49:00 +02:00

#10 Added 'NewLib' function

This commit is contained in:
Tim Voronov
2018-10-07 17:58:22 -04:00
parent 0dfd58dc89
commit fa5a10925b
2 changed files with 12 additions and 0 deletions

10
pkg/stdlib/objects/lib.go Normal file
View File

@ -0,0 +1,10 @@
package objects
import "github.com/MontFerret/ferret/pkg/runtime/core"
func NewLib() map[string]core.Function {
return map[string]core.Function{
"HAS": Has,
"KEYS": Keys,
}
}