mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-21 21:47:43 +02:00
19 lines
430 B
Go
19 lines
430 B
Go
package path
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
// RegisterLib register `PATH` namespace functions.
|
|
func RegisterLib(ns core.Namespace) error {
|
|
return ns.RegisterFunctions(
|
|
core.NewFunctionsFromMap(map[string]core.Function{
|
|
"BASE": Base,
|
|
"CLEAN": Clean,
|
|
"DIR": Dir,
|
|
"EXT": Ext,
|
|
"IS_ABS": IsAbs,
|
|
"JOIN": Join,
|
|
"MATCH": Match,
|
|
"SEPARATE": Separate,
|
|
}))
|
|
}
|