Documentation ¶
Index ¶
- func ConvertError(err error) error
- func EscapeTitle(title string) string
- func Fatal(i ...interface{})
- func FatalOnErr(err error)
- func FprintRpad(w io.Writer, str string, l int)
- 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
- func WildcardMatch(pattern, str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertError ¶
ConvertError converts specific errors to the standard error type
func EscapeTitle ¶
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
func WildcardMatch ¶
WildcardMatch returns true if provided string matches provided wildcard
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.