Releases: xgfone/go-atexit
Releases · xgfone/go-atexit
v0.11.0
- Add
SetDebug
to set the debug mode after the program starts.
- Not support Go
1.7
, requiring 1.8+
.
- Fix some docs.
v0.10.0
- Added:
- Support to exit by signals.
v0.9.0
- Added:
- Support to print the debug log by setting the environment variable
DEBUG
.
v0.8.0
- Added:
- Add the new functions
GetAllInitFuncs
and GetAllExitFuncs
to get the registered init and exit functions.
v0.7.0
- **Removed:
- Remove the deprecated functions
Register
, RegisterWithPriority
, RegisterInit
and RegisterInitWithPriority
.
v0.6.0
- Added:
- Add the new functions
OnExit
and OnExitWithPriority
instead of Register
and RegisterWithPriority
.
- Add the init functions, such as
OnInit
, OnInitWithPriority
, Init
, etc.
v0.5.0
- Changed:
- Remove the signal monitor.
- Remove the exit delay duration.
v0.4.2
- Fixed:
- Unconditionally execute
ExitFunc
when calling Exit
.
v0.4.1
- Fixed:
- Remove the lock when executing the exit functions
v0.4.0
- Added:
- Add the support of the signal monitor, that's, it will monitor the signals and trigger the call of the exit functions when any signal occurs.
- Others:
- Re-implement the code about the exit functions.