gobyexample/exit/exit.go

13 lines
139 B
Go
Raw Normal View History

2024-05-03 11:36:05 +00:00
package exit
import (
"fmt"
"os"
)
func Exit() {
defer fmt.Println("this will never get printed when using os.Exit()")
os.Exit(3)
}