Documentation
¶
Overview ¶
Package paths is the path helpers AutoDoc's core packages share, so each is written once. Paths are slash-separated and clean: a workspace's relative paths, or absolute ones.
Concurrency: the package is functions of their arguments (ExpandHome also reads the home directory from the environment); any number of goroutines may call them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoHome = errs.Sentinel(errs.ErrInvalidArgument, "paths: no home directory")
ErrNoHome is a "~" path expanded with no home directory to put in its place.
Functions ¶
func ExpandHome ¶
ExpandHome is p with a leading "~" or "~/" made the user's home directory. Any other path is returned as it is.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.