package
Version:
v0.0.0-...-5e2b60c
Opens a new window with list of versions in this module.
Published: Dec 11, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CleanList struct {
}
定义清理列表
func (p *CleanList) Exit(n int, f func(key interface{}, value interface{}) bool)
清理列表的退出方法,调用传入的回调函数
清理器的签名方法将在回调函数中执行
type Cleaner struct {
F func()
}
定义清理器
func (p *Cleaner) HandleFunc(f func())
添加回调函数
type ExitCleaner interface {
ExitClean() error
}
定义清理器接口
Source Files
¶
Click to show internal directories.
Click to hide internal directories.