Documentation ¶
Overview ¶
Package pathdistance provides utility functions that calculate distances and extract path values using distance values.
A path distance represents the number of directory levels from the end of a path to a parent directory. For instance, for the path `foo/bar/baz`, the following are the path distance values for different components:
baz: 0 bar: 1 foo: 2
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistanceFrom ¶
DistanceFrom determines the path distance for any of the provided values. In other words, if any of the values are an element of the path, it returns the distance to that match.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.