 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
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)
	fmt.Println("--------")
	fmt.Printf("%+v", err)
}
Output: whoops|foo -------- Multiple errors occurred: whoops|foo
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.