gobyexample/exit/exit.go
2024-05-03 17:06:05 +05:30

13 lines
139 B
Go

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