Documentation
¶
Overview ¶
Package sourcepath handles filesystem paths recorded on a machine whose OS may differ from the process reading them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasPathSuffix ¶
HasPathSuffix reports whether an absolute path ends at a repository-relative path boundary.
func IsAbsolute ¶
IsAbsolute reports whether value includes a complete POSIX, drive, or UNC root.
func IsRepositoryRelative ¶
IsRepositoryRelative reports whether value safely names a path below a repository root.
Types ¶
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
Path is a lexically normalized recorded path. It does not inspect the local filesystem and therefore keeps the source machine's path semantics.
func (Path) IsAbsolute ¶
func (Path) IsRepositoryRelative ¶
Click to show internal directories.
Click to hide internal directories.