Documentation ¶
Index ¶
- type Path
- func (f Path) Base() string
- func (f Path) Dir() (Path, error)
- func (f Path) Equal(other Path) bool
- func (f Path) HasPrefix(prefix Path) bool
- func (f Path) HasSuffix(suffix Path) bool
- func (f Path) IsAncestorOf(path Path) bool
- func (f Path) IsEmpty() bool
- func (f Path) Join(other Path) Path
- func (f Path) LocalString() string
- func (f Path) String() string
- func (f Path) TrimPrefix(prefix Path) Path
- func (f Path) TrimSuffix(suffix Path) Path
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func ExtractLongestCommonPath ¶
ExtractLongestCommonPath returns the longest common path of two paths.
func (Path) IsAncestorOf ¶
IsAncestorOf returns true if the path is an ancestor of the other path.
func (Path) LocalString ¶
LocalString returns the local string representation of a Path.
func (Path) TrimPrefix ¶
TrimPrefix trims the prefix from the path.
func (Path) TrimSuffix ¶
TrimSuffix trims the suffix from the path.
Click to show internal directories.
Click to hide internal directories.