runutil

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseWithErrCapture

func CloseWithErrCapture(err *error, closer io.Closer, msg string)

CloseWithErrCapture closes closer and wraps any error with the provided message and assigns it to err.

func CloseWithLogOnErr

func CloseWithLogOnErr(logger log.Logger, closer io.Closer, format string, args ...interface{})

CloseWithLogOnErr closes an io.Closer and logs any relevant error from it wrapped with the provided format string and args.

Types

This section is empty.

Jump to

Keyboard shortcuts

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