Documentation
¶
Index ¶
- Variables
- func CheckAbsolutePath(path string) (err error)
- func CheckRelativePath(path string) (err error)
- func FilterPaths(pathList []string, pathFilterOptions parameteroptions.PathFilterOptions) (filtered []string, err error)
- func GetAbsolutePath(path string) (absolutePath string, err error)
- func GetDirPath(inputPath string) (dirPath string, err error)
- func GetRelativePathTo(absolutePath string, relativeTo string) (relativePath string, err error)
- func GetRelativePathsTo(absolutePaths []string, relativeTo string) (relativePaths []string, err error)
- func IsAbsolutePath(path string) (isAbsolute bool)
- func IsRelativePath(path string) (isRelative bool)
- func MustCheckAbsolutePath(path string)
- func MustCheckRelativePath(path string)
- func MustFilterPaths(pathList []string, pathFilterOptions parameteroptions.PathFilterOptions) (filtered []string)
- func MustGetAbsolutePath(path string) (absolutePath string)
- func MustGetDirPath(inputPath string) (dirPath string)
- func MustGetRelativePathTo(absolutePath string, relativeTo string) (relativePath string)
- func MustGetRelativePathsTo(absolutePaths []string, relativeTo string) (relativePaths []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPathHasNoParentDirectory = errors.New("path has no parent directory")
Functions ¶
func CheckAbsolutePath ¶
func CheckRelativePath ¶
func FilterPaths ¶
func FilterPaths(pathList []string, pathFilterOptions parameteroptions.PathFilterOptions) (filtered []string, err error)
Filter the given path list.
func GetAbsolutePath ¶
func GetDirPath ¶
func GetRelativePathTo ¶
func GetRelativePathsTo ¶
func IsAbsolutePath ¶
Returns true if path is an absolute path. An empty string as path will always be false.
func IsRelativePath ¶
Returns true if path is a relative path. An empty string as path will always be false.
func MustCheckAbsolutePath ¶
func MustCheckAbsolutePath(path string)
func MustCheckRelativePath ¶
func MustCheckRelativePath(path string)
func MustFilterPaths ¶
func MustFilterPaths(pathList []string, pathFilterOptions parameteroptions.PathFilterOptions) (filtered []string)
func MustGetAbsolutePath ¶
func MustGetDirPath ¶
func MustGetRelativePathTo ¶
func MustGetRelativePathsTo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.