MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / AtExit

Function AtExit

cmd/cql/internal/base.go:112–114  ·  view source on GitHub ↗

AtExit will register function to be executed before exit.

(f func())

Source from the content-addressed store, hash-verified

110
111// AtExit will register function to be executed before exit.
112func AtExit(f func()) {
113 atExitFuncs = append(atExitFuncs, f)
114}
115
116// Exit will run all exit funcs and then return with exitStatus
117func Exit() {

Callers 1

TestMainFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestMainFunction · 0.74