Documentation
¶
Index ¶
- func ConvertEnv(env map[string]string) []string
- func FileExists(file string) bool
- func IsExitError(err error) bool
- func IsURL(s string) bool
- func LastLine(r io.Reader) (l string)
- func MapKeys(m interface{}) (keys []string)
- func MustGetUserHomeDir() string
- func MustGetwd() string
- func RenderString(tmpl string, variables map[string]string) (string, error)
- type Binary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertEnv ¶
ConvertEnv converts map representing the environment to array of strings in the form "key=value"
func IsExitError ¶
IsExitError checks if given error is an instance of exec.ExitError
func MustGetUserHomeDir ¶ added in v1.0.6
func MustGetUserHomeDir() string
MustGetUserHomeDir returns current working directory. Panics is os.UserHomeDir() returns error
Types ¶
Click to show internal directories.
Click to hide internal directories.