func HasPanicked() bool {
	return panicCaught
}
HasPanicked checks whether a panic was ever caught during the execution of the program.
package safe
import (
	"log"
)
func Do(f func()) {
	defer func() {
		if err := recover(); err != nil {
			logPanic(err)
		}
	}()
	f()
}
func DoAndReturn(f func() int, fallback int) (result int) {
	defer func() {
		if err := recover(); err != nil {
			logPanic(err)
			result = fallback
		}
	}()
	return f()
}