closer

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterFunc

func AfterFunc[T Closable](t T, f func(t T) error) (err error)

func AfterValueFunc

func AfterValueFunc[T Closable, V any](t T, f func(t T) (V, error)) (value V, err error)

Types

type Closable

type Closable interface {
	Close() error
}

Jump to

Keyboard shortcuts

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