Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 322 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 322 Bytes

Usage

MultiError concatenate errors into one error.

Example

package main 

import (
	"github.com/donutloop/toolkit/multierror"
	"fmt"
)

func main() {
    errs := []error{
		errors.New("error connect to db failed"),
		errors.New("error marschaling json"),
    }
    fmt.Println(multierror.New(errs...))
}