// New creates a new Shutdown instance.
New creates a new Shutdown instance.
// New creates a new Shutdown instance .
func New() *Shutdown {
	return &Shutdown{
		hooks: map[string]func(os.Signal){},
		mutex: &sync.Mutex{},
	}
}
func New ( ) * Shutdown { return & Shutdown { hooks : map [ string ] func ( os . Signal ) { } , mutex : & sync . Mutex { } , } }
New creates a new Shutdown instance.
New creates a new Shutdown instance .