Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PathRegexp = regexp.MustCompile(`\.host-[[:alnum:]]+`)
PathRegexp returns regexp matching path of any host-specific dotfile.
Functions ¶
func DotFileLocalSuffix ¶
func DotFileLocalSuffix() string
DotFileLocalSuffix returns a suffix to be added to host-specific dotfiles' paths.
func Name ¶
func Name() string
Name returns a hostname of a host machine. Can be overridden by setting HOST enviroment variable.
func RemoveSuffix ¶
RemoveSuffix returns string without host-specific suffix, returns original string if it has no such suffix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.