path.Base
Replaces path separators with slashes (`/`) and returns the last element of the given path.
path.BaseName
Replaces path separators with slashes (`/`) and returns the last element of the given path, removing the extension if present.
path.Clean
Replaces path separators with slashes (`/`) and returns the shortest path name equivalent to the given path.
path.Dir
Replaces path separators with slashes (/) and returns all but the last element of the given path.
path.Ext
Replaces path separators with slashes (`/`) and returns the file name extension of the given path.
path.Join
Replaces path separators with slashes (`/`), joins the given path elements into a single path, and returns the shortest path name equivalent to the result.
path.Split
Replaces path separators with slashes (`/`) and splits the resulting path immediately following the final slash, separating it into a directory and file name component.