errutils

package module
v0.0.0-...-f26c882 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: MIT Imports: 3 Imported by: 3

README

errutils

Utility functions around errors in Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinErrs

func JoinErrs(delim string, errs ...error) error

JoinErrs combines the given errors into a single error using the delimiter If no errors are provided, this will return nil

func JoinErrsStr

func JoinErrsStr(delim string, errs ...error) string

JoinErrsStr combines the given errors into a single string using the delimiter If no errors are provided, this will return an empty string

func NewMultiError

func NewMultiError() *multierror.Error

func NewMultiErrorFmt

func NewMultiErrorFmt(format multierror.ErrorFormatFunc) *multierror.Error

func SingleLineFormat

func SingleLineFormat(errs []error) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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