Documentation
¶
Overview ¶
Package dir provides functions to manage the config directories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotExist = goerrors.NewKind("%s does not exist")
ErrNotExist is returned when config dir does not exists
View Source
var ErrNotValid = goerrors.NewKind("%s is not a valid config directory: %s")
ErrNotValid is returned when config dir is not valid
Functions ¶
func DownloadURL ¶
DownloadURL downloads the given url to a file to the dst path, creating the directory if it's needed
func Path ¶
Path returns the absolute path for $SOURCED_DIR, or $HOME/.sourced if unset and returns an error if it does not exist or it could not be read.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.