errs

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 3

README

Go Reference License Build Status Coverage Status Go Report Card

Errs is a helper package that inspects golang errors and determines wether they are temporary.

Errs is compatible with go >= 1.15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTemporaryCheck

func AddTemporaryCheck(err error) error

AddTemporary ensures that err exposes a `Temporary() bool` method

func MakePermanent

func MakePermanent(err error) error

func MakeTemporary

func MakeTemporary(err error) error

func Temporary

func Temporary(err error) bool

Temporary inspects the error trace and returns wether the error is transient

Types

This section is empty.

Jump to

Keyboard shortcuts

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