Documentation ¶
Index ¶
- func Base(_ context.Context, args ...core.Value) (core.Value, error)
- func Clean(_ context.Context, args ...core.Value) (core.Value, error)
- func Dir(_ context.Context, args ...core.Value) (core.Value, error)
- func Ext(_ context.Context, args ...core.Value) (core.Value, error)
- func IsAbs(_ context.Context, args ...core.Value) (core.Value, error)
- func Join(_ context.Context, args ...core.Value) (core.Value, error)
- func Match(_ context.Context, args ...core.Value) (core.Value, error)
- func RegisterLib(ns core.Namespace) error
- func Separate(_ context.Context, args ...core.Value) (core.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base ¶
BASE returns the last component of the path or the path itself if it does not contain any directory separators. @param {String} path - The path. @return {String} - The last component of the path.
func Clean ¶
CLEAN returns the shortest path name equivalent to path. @param {String} path - The path. @return {String} - The shortest path name equivalent to path
func Dir ¶
DIR returns the directory component of path. @param {String} path - The path. @return {String} - The directory component of path.
func Ext ¶
EXT returns the extension of the last component of path. @param {String} path - The path. @return {String} - The extension of the last component of path.
func IsAbs ¶
IS_ABS reports whether the path is absolute. @param {String} path - The path. @return {Boolean} - True if the path is absolute.
func Join ¶
JOIN joins any number of path elements into a single path, separating them with slashes. @param {String, repeated | String[]} elements - The path elements @return {String} - Single path from the given elements.
func Match ¶
MATCH reports whether name matches the pattern. @param {String} pattern - The pattern. @param {String} name - The name. @return {Boolean} - True if the name matches the pattern.
func RegisterLib ¶
RegisterLib register `PATH` namespace functions. @namespace PATH
Types ¶
This section is empty.