closer

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(c interface{ Close() error })

Bind 绑定一个实现了 Close() error 接口的对象

func CloseAll

func CloseAll()

CloseAll 执行所有已注册的关闭逻辑 通常在 main 函数退出前或捕获到系统信号时调用

func Register

func Register(f func() error)

Register 注册一个关闭函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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