proxy.golang.org : github.com/soniakeys/exit
Exit provides a way to exit from a program that runs deferred functions, logs a message to stderr, and then exits with an operating system exit code. The following example program is in source subdirectory "example". This prints "f attempt" and "f cleanup" to stdout, logs "Fatal error in f" to stderr, and exits with a program exit code of 1.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/soniakeys/exit
License: Unlicense
Latest release: over 7 years ago
First release: over 7 years ago
Namespace: github.com/soniakeys
Stars: 1 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago