errorlist

package
v5.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: BSD-3-Clause Imports: 3 Imported by: 4

Documentation

Overview

Package error contains a type to collect errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintlnStderr

func PrintlnStderr(err error)

PrintlnStderr prints err to stderr. If err is a List it prints several lines.

Types

type List

type List []error

List is a collection of errors.

func (List) Append

func (el List) Append(err error) List

Append err to el.

func (List) AsError

func (el List) AsError() error

AsError returns el properly returning nil for a empty el.

func (List) AsStrings

func (el List) AsStrings() []string

AsStrings returns the error list as as string slice.

func (List) Error

func (el List) Error() string

Error implements the Error method of error.

Jump to

Keyboard shortcuts

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