# README
FUeL.go
Frequently UsEd Libraries for GOlang – the "juice" which powers Golang applications with drive.
# Functions
AttachStackToError attaches a complete errors.StackTrace of the calling goroutine to $err if needed, without AttachStackToError itself and $skip additional frames at the top.
FmtStateToString converts $fs to its fmt.Printf() representation (see unit tests).
FormatNonFormatter forwards $fs and $verb to $nonFormatter.Format() if $nonFormatter is a fmt.Formatter.
GetStack returns a complete errors.StackTrace of the calling goroutine without GetStack itself and $skip additional frames at the top.
NewElasticQueue creates a new ElasticQueue.
NewErrorGroup creates a new ErrorGroup.
NewLimitedQueue creates a new LimitedQueue which runs $concurrency tasks at a time.
SignalsToContext derives $child from $ctx and cancels it on one of $signals.
# Structs
AdvancedError is a feature-rich error wrapper.
ElasticQueue runs enqueued tasks immediately until context cancellation.
ErrorGroup is a more feature-rich version of golang.org/x/sync/errgroup.Group:
* enforces usage of ErrorWithStack, not just error * assembles stack across goroutines * context is forwarded to tasks * optional concurrency limit * stops on context cancellation.
Formatable may be used instead of fmt.Fprintf() for exactly one fmt.Formatter.
LimitedQueue runs enqueued tasks with limited concurrency in FIFO order until context cancellation.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author