Documentation ¶
Overview ¶
Package utils exports generally useful functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckClose ¶
CheckClose closes an io.Closer and checks its error. Useful for checking the errors on deferred Close() behaviors.
func QuoteForShell ¶
QuoteForShell quotes a string for use in a bash shell.
func RunCommand ¶
RunCommand runs a command using exec.Command. The command runs in the working directory "dir" with environment "env" and outputs to stdout and stderr.
func StringSliceContains ¶
StringSliceContains returns "true" if elem is in arr, "false" otherwise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.