Versions in this module Expand all Collapse all v1 v1.0.0 Sep 6, 2023 Changes in this version + func CatchTerminate(f func()) (status bool) + func Command(ctx context.Context, prog string, args ...string) string + func CommandWithErr(ctx context.Context, options CommandOptions, prog string, args ...string) (err error) + func CommandWithOptions(ctx context.Context, options CommandOptions, prog string, args ...string) string + func ConvertMap(objects []FromType, converter func(f FromType) ToType) []ToType + func FileExists(pathname string) bool + func MaybeTerminate(ctx context.Context) + func PanicToErrorAndLog(fun func(), log func(string, ...interface{})) (err error) + func ParseInt(s string) int64 + func RandInt64() int64 + func RandSeq(n int) string + func Retry(fun func(), tries int) + func SetSysProcAttribute(cmd *exec.Cmd) + type CommandOptions struct + ExitCodes []int + type Delayed struct + func NewDelayed() Delayed + func (o *Delayed) Append(fun DelayedFunc) + func (o *Delayed) Call() + func (o *Delayed) String() string + func (o Delayed) Empty() bool + type DelayedFunc func() + type NameIDInterface interface + GetID func() int64 + GetName func() string + type NameIDMap struct + func NewNameIDMap(beans []T) NameIDMap + func (o NameIDMap) GetID(name string) int64 + func (o NameIDMap) GetName(id int64) string + type Terminated struct + func (err Terminated) Error() string