check

package
v0.0.0-...-15325b8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package check provides error checking helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(logger log.Logger, c io.Closer)

Close closes c and logs an error, if it occurs.

func EOF

func EOF(err error) bool

EOF checks if err was caused by io.EOF.

func MustClose

func MustClose(c io.Closer)

MustClose closes c and panics on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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