Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCapacity uint = 8
Functions ¶
This section is empty.
Types ¶
type ErrorLister ¶
type ErrorLister interface {
// ErrorList returns a List of collected non-nil errors.
ErrorList() *List
}
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is a thread-safe error list. Its zero value is ready to use.
func NewWithCapacity ¶ added in v0.10.0
NewWithCapacity creates a new List with a pre-allocated capacity.
func (*List) Append ¶
Append an error to the list. It guarantees only non-nil errors are added. It returns false when a nil error is encountered. And true when the error is appended to the list.
Click to show internal directories.
Click to hide internal directories.