▲ 6 ▼ Introducing gomain, how to properly handle os.Exit in go
I found myself needing to call os.Exit and still have deferred functions run. This is the fruits of that labor.
Register to comment or vote on this story
I found myself needing to call os.Exit and still have deferred functions run. This is the fruits of that labor.