Path functions
Use these functions to work with file paths.
Use these functions to work with file paths.
path.BaseName PATH ⟼ stringReplaces path separators with slashes (
/) and returns the last element of the given path, removing the extension if present.
詳しく見る »
path.Clean PATH ⟼ stringReplaces path separators with slashes (
/) and returns the shortest path name equivalent to the given path.
詳しく見る »
path.Split PATH ⟼ paths.DirFileReplaces path separators with slashes (
/) and splits the resulting path immediately following the final slash, separating it into a directory and file name component.
詳しく見る »