Documentation ¶
Overview ¶
Provides utility functions for working with file paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
Dir returns all but the last element of path, typically the path's directory.
- path is the path to be split.
func Join ¶
Join joins any number of path elements into a single path, separating them with slash. Empty elements are ignored. The result is Cleaned. However, if the argument list is empty or all its elements are empty, Join returns an empty string.
func Split ¶
Split splits path immediately following the final Separator, separating it into a directory and file name component. If there is no Separator in path, Split returns an empty dir and file set to path. The returned values have the property that path = dir+file.
- path is the path to be split.
Types ¶
This section is empty.