Versions in this module Expand all Collapse all v1 v1.0.4 Jul 25, 2025 v1.0.3 Jul 11, 2025 v1.0.2 Jul 1, 2025 v1.0.1 Jul 1, 2025 v1.0.0 Jun 26, 2025 Changes in this version + var AdminCheckList map[string]HealthChecker + var Char_Buff = [26]string + var MinMaxError = errors.New("Min cannot be greater than max.") + var RecoverPanicFunc func(args ...interface{}) + func AddHealthCheck(name string, hc HealthChecker) + func AppendEmptySliceField(slice reflect.Value) reflect.Value + func Avg(items []time.Duration) time.Duration + func CatchPanic(f func()) (err interface{}) + func Clone(src interface{}) (dst interface{}) + func DeleteEmptySliceElements(slice interface{}) interface + func DeleteEmptySliceElementsVal(sliceVal reflect.Value) reflect.Value + func DeleteSliceElement(slice interface{}, idx int) interface + func DeleteSliceElementVal(sliceVal reflect.Value, idx int) reflect.Value + func Display(data ...interface{}) + func DumpStack(f string) + func DumpStackIfPanic(f string) + func GetCallStack() string + func GetDisplayString(data ...interface{}) string + func GetPanicStats() map[string]PanicStackInfo + func IntRange(min, max int) (int, error) + func MemProf() + func NewFileLineHook(levels ...logrus.Level) logrus.Hook + func NewRotateLogHook(config *RotateLogConfig) logrus.Hook + func PrintGCSummary(w io.Writer) + func ProcessInput(input string, w io.Writer) + func RandChoice(choices []interface{}) (interface{}, error) + func RandCode(codelen int) string + func RandNumCode(codelen int) string + func RepeatUntilPanicless(f func()) + func RunPanicless(f func()) (panicless bool) + func SetSliceLengh(slice reflect.Value, length int) reflect.Value + func SortInterfaceSlice(slice []interface{}, lessFunc func(a, b interface{}) bool) + func StartCPUProfile() + func StopCPUProfile() + func ToH(bytes uint64) string + func ToS(d time.Duration) string + type AtomicIdGen struct + func (this *AtomicIdGen) CurrId() uint32 + func (this *AtomicIdGen) NextId() uint32 + func (this *AtomicIdGen) Reset() + func (this *AtomicIdGen) SetStartPoint(startPoint uint32) + type FileLineHook struct + FieldName string + LogLevels []logrus.Level + Num int + Skip int + Test bool + func (e *FileLineHook) Fire(entry *logrus.Entry) error + func (e *FileLineHook) Levels() []logrus.Level + type HealthChecker interface + Check func() error + type HealthCheckerWrapper func() error + func (hcw HealthCheckerWrapper) Check() error + type IdGen struct + func (this *IdGen) CurrId() int + func (this *IdGen) NextId() int + func (this *IdGen) Reset() + func (this *IdGen) SetSeq(seq int) + func (this *IdGen) SetStartPoint(startPoint int) + type PanicStackInfo struct + ErrorMsg string + FirstTime time.Time + LastTime time.Time + StackBuf string + Times int64 + type PanicStackMgr struct + type RotateLogConfig struct + Levels []string + LinkName string + MaxAge int + Pattern string + RotationCount int + RotationSize int + RotationTime int + type RuntimeStats struct + CountBlock int + CountGoroutine int + CountHeap int + CountThread int + func StatsRuntime() RuntimeStats + type SortableInterfaceSlice struct + LessFunc func(a, b interface{}) bool + Slice []interface{} + func (self *SortableInterfaceSlice) Len() int + func (self *SortableInterfaceSlice) Less(i, j int) bool + func (self *SortableInterfaceSlice) Sort() + func (self *SortableInterfaceSlice) Swap(i, j int) + type Waitor struct + func NewWaitor(name string) *Waitor + func (w *Waitor) Add(name string, delta int) + func (w *Waitor) Done(name string) + func (w *Waitor) Wait(name string)