package exit import ( "fmt" "os" ) func Exit() { defer fmt.Println("this will never get printed when using os.Exit()") os.Exit(3) }