package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: May 20, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Bind(c interface{ Close() error })
Bind 绑定一个实现了 Close() error 接口的对象
CloseAll 执行所有已注册的关闭逻辑
通常在 main 函数退出前或捕获到系统信号时调用
func Register(f func() error)
Register 注册一个关闭函数
Source Files
¶
Click to show internal directories.
Click to hide internal directories.