Skip to content

Releases: xgfone/go-atexit

v0.11.0

19 Sep 13:55
Compare
Choose a tag to compare
  • 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

30 Mar 14:21
Compare
Choose a tag to compare
  • Added:
    • Support to exit by signals.

v0.9.0

13 Dec 13:55
Compare
Choose a tag to compare
  • Added:
    • Support to print the debug log by setting the environment variable DEBUG.

v0.8.0

26 Oct 15:19
Compare
Choose a tag to compare
  • Added:
    • Add the new functions GetAllInitFuncs and GetAllExitFuncs to get the registered init and exit functions.

v0.7.0

26 Oct 15:26
Compare
Choose a tag to compare
  • **Removed:
    • Remove the deprecated functions Register, RegisterWithPriority, RegisterInit and RegisterInitWithPriority.

v0.6.0

26 Oct 15:23
Compare
Choose a tag to compare
  • 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

02 Aug 14:54
Compare
Choose a tag to compare
  • Changed:
    • Remove the signal monitor.
    • Remove the exit delay duration.

v0.4.2

11 Apr 10:41
Compare
Choose a tag to compare
  • Fixed:
    • Unconditionally execute ExitFunc when calling Exit.

v0.4.1

12 Feb 08:32
Compare
Choose a tag to compare
  • Fixed:
    • Remove the lock when executing the exit functions

v0.4.0

06 Feb 14:29
Compare
Choose a tag to compare
  • 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.