host

package
v0.0.0-...-6b1ef89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2023 License: Unlicense Imports: 3 Imported by: 0

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

func RemoveSuffix(input string) string

RemoveSuffix returns string without host-specific suffix, returns original string if it has no such suffix.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL