multi

package
v1.2.32 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(errs ...error) error

New returns an error with the supplied errors. If no error contained, return nil. Deprecated: Use errors.Multi instead.

Example
package main

import (
	"fmt"

	"github.com/searKing/golang/go/error/multi"
)

func main() {
	err := multi.New(fmt.Errorf("whoops"), fmt.Errorf("foo"))
	fmt.Println(err)

}
Output:

whoops|foo

Types

This section is empty.

Jump to

Keyboard shortcuts

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