Documentation ¶
Index ¶
- Variables
- func FormatString(err Formatter) string
- func ReportErrors(r Reporter, errs Errors, w io.Writer) (e error)
- func ReportToString(r Reporter, err error) (s string, e error)
- type ErrGroup
- type ErrGroupFinalizer
- type ErrGroupSetup
- type ErrGroupWait
- type Errors
- type Formatter
- type Group
- type GroupFunc
- type GroupMaker
- type GroupOptions
- type GroupRef
- type Iter
- type Multi
- type MultiMaker
- type MultiReporter
- type Reporter
- type UnwrapReport
- type WithReporter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultGroupOpts = GroupOptions{ Context: context.Background(), Finalizer: waitFinalizer, ConcurrencyLimit: 1, } )
View Source
var NewlineDelimited = ReportWithDelimiter("\n")
Functions ¶
func FormatString ¶
Types ¶
type ErrGroupFinalizer ¶
type ErrGroupSetup ¶
type ErrGroupSetup interface {
SetupErrGroup(*ErrGroup)
}
type ErrGroupWait ¶
type ErrGroupWait struct{}
func (ErrGroupWait) FinalizeErrGroup ¶
func (ErrGroupWait) FinalizeErrGroup(gp *ErrGroup) error
type Errors ¶
type Errors struct {
// contains filtered or unexported fields
}
func WithLengthCap ¶
func (Errors) WithReporter ¶
func (errs Errors) WithReporter(reporter Reporter) WithReporter
type GroupMaker ¶
type GroupOptions ¶
type GroupOptions struct { Context context.Context Finalizer ErrGroupFinalizer ConcurrencyLimit int }
func (GroupOptions) NewErrGroup ¶
func (opt GroupOptions) NewErrGroup() (Group, error)
func (GroupOptions) SetupErrGroup ¶
func (opt GroupOptions) SetupErrGroup(gr *ErrGroup)
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
TODO: implement error interface
type MultiMaker ¶
type UnwrapReport ¶
type UnwrapReport struct {
// contains filtered or unexported fields
}
func ReportWithDelimiter ¶
func ReportWithDelimiter(delim string) (u UnwrapReport)
func (UnwrapReport) ReportError ¶
func (u UnwrapReport) ReportError(err error, w io.Writer) (e error)
type WithReporter ¶
type WithReporter struct {
// contains filtered or unexported fields
}
func (WithReporter) Error ¶
func (wr WithReporter) Error() string
Click to show internal directories.
Click to hide internal directories.