Documentation
¶
Index ¶
- func Base(_ context.Context, arg runtime.Value) (runtime.Value, error)
- func Clean(_ context.Context, arg runtime.Value) (runtime.Value, error)
- func Dir(_ context.Context, arg runtime.Value) (runtime.Value, error)
- func Ext(_ context.Context, arg runtime.Value) (runtime.Value, error)
- func IsAbs(_ context.Context, arg runtime.Value) (runtime.Value, error)
- func Join(ctx context.Context, args ...runtime.Value) (runtime.Value, error)
- func Match(_ context.Context, arg1, arg2 runtime.Value) (runtime.Value, error)
- func RegisterLib(ns runtime.Namespace)
- func Separate(_ context.Context, arg runtime.Value) (runtime.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 path {String} The path. @return {String} The last component of the path.
func Clean ¶
clean returns the shortest path name equivalent to path. @param path {String} The path. @return {String} The shortest path name equivalent to path
func Dir ¶
dir returns the directory component of path. @param path {String} The path. @return {String} The directory component of path.
func Ext ¶
ext returns the extension of the last component of path. @param path {String} The path. @return {String} The extension of the last component of path.
func IsAbs ¶
is_abs reports whether the path is absolute. @param path {String} 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 elements {String, repeated | String[]} The path elements @return {String} Single path from the given elements.
func Match ¶
match reports whether name matches the pattern. @param pattern {String} The pattern. @param name {String} The name. @return {Boolean} True if the name matches the pattern.
func RegisterLib ¶
RegisterLib registers all path functions exclusively in the path namespace. @namespace path
Types ¶
This section is empty.