Discover Packages
github.com/win-t/go-utils
mainrun
package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Oct 5, 2021
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
When function that passed to Run is returned error or panic,
run f, the returned int will be used to os.Exit function.
Run f
ctx passed to f will be canceled when graceful shutdown is requested,
if f returned error or panic, then log it and run os.Exit(1), otherwise run os.Exit(0).
This function never return.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.