xerror

package
v2.1.12 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 0 Imported by: 2

Documentation

Overview

Package xerror implements helpers for errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap[T any](val T, err error) T

Unwrap if err is nil then it returns a valid value If err is not nil, Unwrap panics with err.

Types

This section is empty.

Jump to

Keyboard shortcuts

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