syncerr

package
v0.2.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error abstracts out collecting errors in goroutines Makes it safe to add each new error in Append This doesn't implement the error interface so that it doesn't break the if err != nil paradigm in golang. To check if there's an error, call the Err() method and check if that's nil

func (*Error) Append

func (e *Error) Append(err error)

Append takes an error and adds a new instance to its collection of errors

func (*Error) Err

func (e *Error) Err() error

Err returns something which satisfies the error interface

Jump to

Keyboard shortcuts

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