dio

package
v0.1.40 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseCtxHelper

func CloseCtxHelper(ctx context.Context, cc CloserCtx, err *error)

func CloseHelper

func CloseHelper(f io.Closer, err *error)

func DiscardCloseHelper

func DiscardCloseHelper(f io.ReadCloser, err *error)

Types

type CloserCtx

type CloserCtx interface {
	Close(context.Context) error
}

Jump to

Keyboard shortcuts

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