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. @params path (String) - The path. @returns (String) - The last component of the path.
func Clean ¶
Clean returns the shortest path name equivalent to path. @params path (String) - The path. @returns (String) - The shortest path name equivalent to path
func Dir ¶
Dir returns the directory component of path. @params path (String) - The path. @returns (String) - The directory component of path.
func Ext ¶
Ext returns the extension of the last component of path. @params path (String) - The path. @returns (String) - The extension of the last component of path.
func IsAbs ¶
IsAbs reports whether the path is absolute. @params path (String) - The path. @returns (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 elem (String...|Array<String>) - The path elements @returns (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. @returns (Boolean) - True if the name mathes the pattern.
func RegisterLib ¶
RegisterLib register `PATH` namespace functions.
Types ¶
This section is empty.