package
1.24.4
Repository: https://pkg.go.dev/std
Documentation: pkg.go.dev

# Functions

Abs returns an absolute representation of path.
Base returns the last element of path.
Clean returns the shortest path name equivalent to path by purely lexical processing.
Dir returns all but the last element of path, typically the path's directory.
EvalSymlinks returns the path name after the evaluation of any symbolic links.
Ext returns the file name extension used by path.
FromSlash returns the result of replacing each slash ('/') character in path with a separator character.
Glob returns the names of all files matching pattern or nil if there is no matching file.
HasPrefix exists for historical compatibility and should not be used.
IsAbs reports whether the path is absolute.
IsLocal reports whether path, using lexical analysis only, has all of these properties: - is within the subtree rooted at the directory in which path is evaluated - is not an absolute path - is not empty - on Windows, is not a reserved name such as "NUL" If IsLocal(path) returns true, then Join(base, path) will always produce a path contained within base and Clean(path) will always produce an unrooted path with no ".." path elements.
Join joins any number of path elements into a single path, separating them with an OS specific [Separator].
Localize converts a slash-separated path into an operating system path.
Match reports whether name matches the shell file name pattern.
Rel returns a relative path that is lexically equivalent to targpath when joined to basepath with an intervening separator.
Split splits path immediately following the final [Separator], separating it into a directory and file name component.
SplitList splits a list of paths joined by the OS-specific [ListSeparator], usually found in PATH or GOPATH environment variables.
ToSlash returns the result of replacing each separator character in path with a slash ('/') character.
VolumeName returns leading volume name.
Walk walks the file tree rooted at root, calling fn for each file or directory in the tree, including root.
WalkDir walks the file tree rooted at root, calling fn for each file or directory in the tree, including root.

# Constants

No description provided by the author
No description provided by the author

# Variables

ErrBadPattern indicates a pattern was malformed.
SkipAll is used as a return value from [WalkFunc] to indicate that all remaining files and directories are to be skipped.
SkipDir is used as a return value from [WalkFunc] to indicate that the directory named in the call is to be skipped.

# Type aliases

WalkFunc is the type of the function called by [Walk] to visit each file or directory.