package
module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Sep 25, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Documentation
¶
Exit calls os.Exit with stored non-zero global status.
Status returns current exit status.
package main
import (
"fmt"
"github.com/ninedraft/stop"
)
func main() {
defer fmt.Println("never be printed")
defer stop.Exit()
defer fmt.Println("will be printed")
stop.Stop(1)
}
Output:
Stop sets global exit status and exits current goroutine with runtime.Goexit().
Source Files
¶
Click to show internal directories.
Click to hide internal directories.