mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-19 21:28:32 +02:00
* Added release notes * #509 fixedOCOD typo * Updated values * Updated comments * Changed stdlib docs format * Changed format of array in docs * Use 'any' instead of 'value' in docs * New format for optional params * Updated docs for testing package * Added namespace information
22 lines
483 B
Go
22 lines
483 B
Go
package path
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
// RegisterLib register `PATH` namespace functions.
|
|
// @namespace PATH
|
|
func RegisterLib(ns core.Namespace) error {
|
|
return ns.
|
|
Namespace("PATH").
|
|
RegisterFunctions(
|
|
core.NewFunctionsFromMap(map[string]core.Function{
|
|
"BASE": Base,
|
|
"CLEAN": Clean,
|
|
"DIR": Dir,
|
|
"EXT": Ext,
|
|
"IS_ABS": IsAbs,
|
|
"JOIN": Join,
|
|
"MATCH": Match,
|
|
"SEPARATE": Separate,
|
|
}))
|
|
}
|