Top 4.7% dependent repos on proxy.golang.org
proxy.golang.org : github.com/creachadair/ctrl
Package ctrl manages passage of control through a main function. In case of error main programs typically call os.Exit or log.Fatal. However, this causes the process to terminate immediately and deferred calls are not invoked. Calling log.Panic allows deferred calls to run, but makes a noisy log trace. This package provides a Run function that performs the main action of a program. Within its dynamic extent, calls to ctrl.Exit and ctrl.Exitf will panic back to Run, which will handle logging and exiting from the process as specified. Example:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/creachadair/ctrl
License: MIT
Latest release: over 3 years ago
First release: almost 6 years ago
Namespace: github.com/creachadair
Dependent packages: 5
Dependent repositories: 1
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 15 days ago