Documentation ¶
Index ¶
- func ConvertError(err error) error
- func EscapeTitle(title string) string
- func Fatal(i ...interface{})
- func FatalOnErr(err error)
- func Max(a, b int) int
- func RunCmd(cmd string, args ...string) error
- func ScanLines(r io.Reader, callback func([]byte) bool) error
- func SplitAndTrim(str string) (res []string)
- func StringsContain(strs []string, str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertError ¶ added in v1.0.4
ConvertError converts specific errors to the standard error type
func EscapeTitle ¶ added in v1.0.7
EscapeTitle makes title usable for tmux session name
func ScanLines ¶
ScanLines reads line by line from reader. Doesn't throw "token too long" error like bufio.Scanner
func SplitAndTrim ¶
SplitAndTrim splits string, trims every entry and removes blank entries
func StringsContain ¶
StringsContain returns true if provided string slice contains provided string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.