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 ¶
List is a thread-safe error list. Its zero value is ready to use.
func NewWithDefaultCapacity ¶
func NewWithDefaultCapacity() *List
NewWithDefaultCapacity creates a new List with a pre-allocated capacity of DefaultCapacity.
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.