multi

package
v1.2.117 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 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