mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-04 03:02:02 +02:00
#485 missed namespace
This commit is contained in:
parent
ed8e43e4c6
commit
c86eecd54c
@ -4,15 +4,17 @@ import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|||||||
|
|
||||||
// RegisterLib register `PATH` namespace functions.
|
// RegisterLib register `PATH` namespace functions.
|
||||||
func RegisterLib(ns core.Namespace) error {
|
func RegisterLib(ns core.Namespace) error {
|
||||||
return ns.RegisterFunctions(
|
return ns.
|
||||||
core.NewFunctionsFromMap(map[string]core.Function{
|
Namespace("PATH").
|
||||||
"BASE": Base,
|
RegisterFunctions(
|
||||||
"CLEAN": Clean,
|
core.NewFunctionsFromMap(map[string]core.Function{
|
||||||
"DIR": Dir,
|
"BASE": Base,
|
||||||
"EXT": Ext,
|
"CLEAN": Clean,
|
||||||
"IS_ABS": IsAbs,
|
"DIR": Dir,
|
||||||
"JOIN": Join,
|
"EXT": Ext,
|
||||||
"MATCH": Match,
|
"IS_ABS": IsAbs,
|
||||||
"SEPARATE": Separate,
|
"JOIN": Join,
|
||||||
}))
|
"MATCH": Match,
|
||||||
|
"SEPARATE": Separate,
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user