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

Add Path functions (#505)

* Add Path functions

* Add unit tests
This commit is contained in:
Aleksandr Yakimenko
2020-05-13 05:19:41 +03:00
committed by GitHub
parent 311d07ad40
commit ed8e43e4c6
18 changed files with 676 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
"github.com/MontFerret/ferret/pkg/stdlib/io"
"github.com/MontFerret/ferret/pkg/stdlib/math"
"github.com/MontFerret/ferret/pkg/stdlib/objects"
"github.com/MontFerret/ferret/pkg/stdlib/path"
"github.com/MontFerret/ferret/pkg/stdlib/strings"
"github.com/MontFerret/ferret/pkg/stdlib/types"
"github.com/MontFerret/ferret/pkg/stdlib/utils"
@ -51,5 +52,9 @@ func RegisterLib(ns core.Namespace) error {
return err
}
if err := path.RegisterLib(ns); err != nil {
return err
}
return utils.RegisterLib(ns)
}