errorsx

package
v0.0.0-...-cb58a95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

errors扩展包,也包括multi error等功能。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsError

func AsError(v interface{}) error

func Multi

func Multi(errs []error) error

func SelectOrCompose

func SelectOrCompose(err1, err2 error) error

func Wrap

func Wrap(err error, msg string) error

Types

type MultiError

type MultiError []error

func (MultiError) Error

func (m MultiError) Error() string

type WrapError

type WrapError struct {
	Err     error
	Message string
}

func (*WrapError) Error

func (w *WrapError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL