package path
import "src.elv.sh/pkg/mods/path"
Package path provides functions for manipulating filesystem path names.
Index ¶
Variables ¶
var Ns = eval.BuildNsNamed("path"). AddVars(map[string]vars.Var{ "dev-null": vars.NewReadOnly(os.DevNull), "dev-tty": vars.NewReadOnly(osmod.DevTTY), "list-separator": vars.NewReadOnly(string(filepath.ListSeparator)), "separator": vars.NewReadOnly(string(filepath.Separator)), }). AddGoFns(map[string]any{ "abs": filepath.Abs, "base": filepath.Base, "clean": filepath.Clean, "dir": filepath.Dir, "ext": filepath.Ext, "is-abs": filepath.IsAbs, "join": filepath.Join, "eval-symlinks": filepath.EvalSymlinks, "is-dir": osmod.IsDir, "is-regular": osmod.IsRegular, "temp-dir": osmod.TempDir, "temp-file": osmod.TempFile, }).Ns()
Ns is the namespace for the path: module.
Source Files ¶
path.go
- Version
- v0.21.0 (latest)
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 days ago –
Tools for package owners.