errs

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 9 Imported by: 1

README

go-errs

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = true

Functions

func Close

func Close(closer io.Closer)

func CloseIgnoreClosed added in v1.0.2

func CloseIgnoreClosed(closer io.Closer)

func CloseResponse

func CloseResponse(resp *http.Response)

func Defer added in v1.0.1

func Defer(fn func() error)

func DeferCall added in v1.0.1

func DeferCall(fn interface{}, args ...interface{})

func DeferCallSlice added in v1.0.1

func DeferCallSlice(fn interface{}, args ...interface{})

func DeferIgnoreClosed added in v1.0.2

func DeferIgnoreClosed(fn func() error)

func IsClosed added in v1.0.2

func IsClosed(err error) bool

func Panic

func Panic(err error)

func Print

func Print(err error) bool

func PrintWithDepthToLog

func PrintWithDepthToLog(err error, depth int) bool

func PrintWithDepthToLogBuffer

func PrintWithDepthToLogBuffer(err error, depth int) *bytes.Buffer

func PrintWithDepthToLogger

func PrintWithDepthToLogger(err error, depth int, log *log.Logger) bool

func SetLogFlag added in v1.0.3

func SetLogFlag()

Types

This section is empty.

Jump to

Keyboard shortcuts

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