Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶ added in v0.0.11
type Builder struct {
// contains filtered or unexported fields
}
Builder captures errors from parallel goroutines.
Example usage:
var ( errs = multierror.NewBuilder(3) wg sync.WaitGroup ) for _, foo := range foos { wg.Add(1) go func() { defer wg.Done() errs.Add(someWork(foo)) }() } wg.Wait() if err := errs.Err(); err != nil { // handle err }
func NewBuilder ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.