Versions in this module Expand all Collapse all v1 v1.6.1 Oct 12, 2025 Changes in this version + func Fmt() func(e error) + func Logger() func(e error) + func Panic() func(e error) + type Context struct + M *sync.RWMutex + Map map[string]interface{} + func NewContext() *Context + func (c *Context) Get(key string) interface{} + func (c *Context) GetBool(key string) bool + func (c *Context) GetInt(key string) int + func (c *Context) GetString(key string) string + func (c *Context) Set(key string, value interface{}) + type ErrorBox *queue.Queue + type ErrorCollection struct + AutoHandleChan chan int + CatchErrorChan chan error + ErrorHandleChain []ErrorHandler + ErrorHandleChainWithContextInSeires []ErrorHandlerWithContextInSeries + M *sync.Mutex + func Default() *ErrorCollection + func NewCollection() *ErrorCollection + func (ec *ErrorCollection) Add(e error) + func (ec *ErrorCollection) AddHandler(handler ...ErrorHandler) + func (ec *ErrorCollection) AddHandlerWithContext(handler ...ErrorHandlerWithContextInSeries) + func (ec *ErrorCollection) CatchError() <-chan error + func (ec *ErrorCollection) Clear() + func (ec *ErrorCollection) CloseHandles() + func (ec *ErrorCollection) GetError() error + func (ec *ErrorCollection) GetQueueLock() *sync.Mutex + func (ec *ErrorCollection) Handle(f ErrorHandler) + func (ec *ErrorCollection) HandleChain() + func (ec *ErrorCollection) HandleInSeries(f ErrorHandlerWithContextInSeries) + func (ec *ErrorCollection) IfErrorChanFull() bool + func (ec *ErrorCollection) Length() int + func (ec *ErrorCollection) Pop() error + func (ec *ErrorCollection) SafeLength() int + type ErrorHandler func(e error) + type ErrorHandlerWithContextInSeries func(e error, ctx *Context) (next bool)