goutils

package
v0.0.0-...-1301960 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[T any](input T) (T, error)

Clone uses gob to deep copy objects.

func MustBeNil

func MustBeNil(err error)

MustBeNil - panics on non-empty error.

func PanicRecovery

func PanicRecovery(wrapup func(cause error))

PanicRecovery catches the cause of panic and passes it to the callback.

func Pointer

func Pointer[T any](input T) *T

Pointer returns a pointer to the given value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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