Add exit
This commit is contained in:
12
exit/exit.go
Normal file
12
exit/exit.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package exit
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Exit() {
|
||||
defer fmt.Println("this will never get printed when using os.Exit()")
|
||||
|
||||
os.Exit(3)
|
||||
}
|
||||
Reference in New Issue
Block a user