Versions in this module Expand all Collapse all v0 v0.78.5 Nov 6, 2020 Changes in this version + func All(actions ...func()) func() + func DefaultBackoff(interval time.Duration) time.Duration + func Dump(list ...interface{}) string + func E(args ...interface{}) []interface + func EscapeGoString(s string) string + func Exec(name string, args ...string) + func FileExists(path string) bool + func Mkdir(path string) error + func MustToJSON(data interface{}) string + func MustToJSONBytes(data interface{}) []byte + func OutputFile(p string, data interface{}) error + func Pause() + func RandString(len int) string + func ReadString(p string) (string, error) + func Retry(ctx context.Context, s Sleeper, fn func() (stop bool, err error)) error + func S(tpl string, params ...interface{}) string + func SetCmdStdPipe(cmd *exec.Cmd) + func Sleep(seconds float64) + type IdleCounter struct + func NewIdleCounter(d time.Duration) *IdleCounter + func (de *IdleCounter) Add() + func (de *IdleCounter) Done() + func (de *IdleCounter) Wait(ctx context.Context) + type Log func(msg ...interface{}) + func (l Log) Println(msg ...interface{}) + func MultiLogger(list ...Logger) Log + type Logger interface + Println func(...interface{}) + var LoggerQuiet Logger = loggerQuiet{} + type Sleeper func(context.Context) error + func BackoffSleeper(init, maxInterval time.Duration, algorithm func(time.Duration) time.Duration) Sleeper + func CountSleeper(max int) Sleeper