package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Mar 9, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewShutter creates a new shutter instance. If the log is nil, then discard logger will be used.
Down walks a shutdown list in reverse and call Close() one by one
Up add thing that requires shutdown
func (s *Shut) UpFunc(f ...func())
UpFunc add blank shutdown function
type Shutter interface {
Close() error
}
Shutter is an interface for something that can be shutdown. Same as io.Closer interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.