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:
@ -5,6 +5,7 @@ import (
|
|||||||
"github.com/MontFerret/ferret/pkg/stdlib/arrays"
|
"github.com/MontFerret/ferret/pkg/stdlib/arrays"
|
||||||
"github.com/MontFerret/ferret/pkg/stdlib/collections"
|
"github.com/MontFerret/ferret/pkg/stdlib/collections"
|
||||||
"github.com/MontFerret/ferret/pkg/stdlib/html"
|
"github.com/MontFerret/ferret/pkg/stdlib/html"
|
||||||
|
"github.com/MontFerret/ferret/pkg/stdlib/objects"
|
||||||
"github.com/MontFerret/ferret/pkg/stdlib/strings"
|
"github.com/MontFerret/ferret/pkg/stdlib/strings"
|
||||||
"github.com/MontFerret/ferret/pkg/stdlib/types"
|
"github.com/MontFerret/ferret/pkg/stdlib/types"
|
||||||
"github.com/MontFerret/ferret/pkg/stdlib/utils"
|
"github.com/MontFerret/ferret/pkg/stdlib/utils"
|
||||||
@ -23,6 +24,7 @@ func NewLib() map[string]core.Function {
|
|||||||
add(strings.NewLib())
|
add(strings.NewLib())
|
||||||
add(collections.NewLib())
|
add(collections.NewLib())
|
||||||
add(arrays.NewLib())
|
add(arrays.NewLib())
|
||||||
|
add(objects.NewLib())
|
||||||
add(html.NewLib())
|
add(html.NewLib())
|
||||||
add(utils.NewLib())
|
add(utils.NewLib())
|
||||||
|
|
||||||
|
10
pkg/stdlib/objects/lib.go
Normal file
10
pkg/stdlib/objects/lib.go
Normal 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,
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user