Versions in this module Expand all Collapse all v1 v1.20.2 Sep 4, 2026 Changes in this version + func AddShutdownListener(fn func()) (waitForCalled func()) — darwin/amd64, linux/amd64 + func AddShutdownListener(fn func()) func() — windows/amd64 + func AddWrapUpListener(fn func()) (waitForCalled func()) — darwin/amd64, linux/amd64 + func AddWrapUpListener(fn func()) func() — windows/amd64 + func SetTimeToForceQuit(duration time.Duration) — darwin/amd64, linux/amd64, windows/amd64 + func Setup(conf ShutdownConf) — windows/amd64 + func Shutdown() — darwin/amd64, linux/amd64, windows/amd64 + func WrapUp() — darwin/amd64, linux/amd64, windows/amd64 + type Group struct + func NewServiceGroup() *Group + func (sg *Group) Add(service Service) + func (sg *Group) Start() + func (sg *Group) Stop() + type Service interface + func WithStart(start func()) Service + func WithStarter(start Starter) Service + type ShutdownConf struct — windows/amd64 + type Starter interface + Start func() + type Stopper interface + Stop func()