diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-06-14 00:45:04 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-06-14 00:45:04 +0200 |
commit | fe2bae01c6b14eef0e61cd4a6bd50e814de4bb58 (patch) | |
tree | 60fbda65d5fa3a9afc966bce51b6968e966baf4c /src/atexit/atexit.go | |
parent | 2d5ca3a6cd507ef29eb13b3a78232264a2817e81 (diff) |
Move some packages to pkg/
Diffstat (limited to 'src/atexit/atexit.go')
-rw-r--r-- | src/atexit/atexit.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/atexit/atexit.go b/src/atexit/atexit.go deleted file mode 100644 index ed35ccf..0000000 --- a/src/atexit/atexit.go +++ /dev/null @@ -1,13 +0,0 @@ -package atexit - -var hooks = []func(){} - -func Register(f func()) { - hooks = append(hooks, f) -} - -func Exec() { - for i := len(hooks)-1; i >= 0; i-- { - hooks[i]() - } -} |