Documentation ¶
Index ¶
- func AppendToPath(path, dir string) string
- func HomeDir() string
- func MacOS() bool
- func ParseTemplate(body string, values interface{}) ([]byte, error)
- func RandomAvailablePort() int
- func RemoveFromPath(path, dir string) string
- func ShellSplit(cmd string) []string
- func WriteTemplate(body string, file string, values interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendToPath ¶ added in v0.4.0
AppendToPath appends directory to PATH.
func ParseTemplate ¶
ParseTemplate parses template with body and values and returns the resulting bytes.
func RandomAvailablePort ¶ added in v0.4.0
func RandomAvailablePort() int
RandomAvailablePort returns an available port on the host machine.
func RemoveFromPath ¶ added in v0.4.0
RemoveFromPath removes directory from PATH.
func ShellSplit ¶ added in v0.4.3
ShellSplit splids cmd into arguments using.
func WriteTemplate ¶
WriteTemplate writes template with body to file after applying values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.