close

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 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
}

type CloseError added in v0.7.3

type CloseError struct {
	// contains filtered or unexported fields
}

CloseError discriminate whether the error comes from close action

func (*CloseError) Error added in v0.7.3

func (c *CloseError) Error() string

func (*CloseError) Unwrap added in v0.7.3

func (c *CloseError) Unwrap() error

Jump to

Keyboard shortcuts

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