Documentation ¶ Index ¶ Constants type Errors func New() Errors func (e *Errors) Add(err error) func (e Errors) Error() string func (e Errors) ErrorTab() string func (e Errors) IsEmpty() bool func (e Errors) String() string func (e Errors) Stringify(separator string) string func (e Errors) ToError() error func (e Errors) Unwrap() []error Constants ¶ View Source const ( NL = "\n" NLT = "\n\t" ) Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Errors ¶ type Errors []error Errors 多个错误信息 func New ¶ func New() Errors func (*Errors) Add ¶ func (e *Errors) Add(err error) func (Errors) Error ¶ func (e Errors) Error() string func (Errors) ErrorTab ¶ func (e Errors) ErrorTab() string func (Errors) IsEmpty ¶ func (e Errors) IsEmpty() bool func (Errors) String ¶ func (e Errors) String() string func (Errors) Stringify ¶ func (e Errors) Stringify(separator string) string func (Errors) ToError ¶ func (e Errors) ToError() error func (Errors) Unwrap ¶ added in v5.2.0 func (e Errors) Unwrap() []error Source Files ¶ View all Source files errorslice.go Click to show internal directories. Click to hide internal directories.