Documentation
¶
Overview ¶
Package exit handles exit to OS
Index ¶
Constants ¶
View Source
const ( // MNone set the exit mode at default. When Exit.Exit is called it exits // with the as normal with the supplied return code. MNone = iota // MPanic set the exit mode to panic. When Exit.Exit is called then a panic // will ensue instead of exiting. MPanic )
Variables ¶
View Source
var ( // ExitMode is the current exit mode. Should be one of MNone or MPanic ExitMode int )
Functions ¶
Types ¶
type HandlerIface ¶
type HandlerIface interface { // Exit exit function with exit code. 0 is success Exit(code int) }
HandlerIface ...
Click to show internal directories.
Click to hide internal directories.