path

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package path provides functions for manipulating filesystem path names.

Index

Constants

This section is empty.

Variables

View Source
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.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL