func Do(f func()) {
	defer func() {
		if err := recover(); err != nil {
			logPanic(err)
		}
	}()
	f()
}
Do wraps a function with recover logic to catch unexpected panics.
package safe
import (
	"log"
)