safe

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go(fn func())

func IfErrorPresent

func IfErrorPresent(label string, fn func() error)

func IfErrorXPresent

func IfErrorXPresent[T any](label string, fn func() (T, error))

func InitErrorHandler

func InitErrorHandler(handler ErrorHandler)

func Recover

func Recover(onError ...func(err any))

func Run

func Run(fn func())

Types

type ErrorHandler

type ErrorHandler func(string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL