common

package
v0.0.0-...-a5406a4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CGOEnabled = true
	CGOHint    = "enabled"
)

Variables

This section is empty.

Functions

func Cause

func Cause(cause string, err error) error

func GetSecond

func GetSecond[T any](_ any, r T) T

func Must

func Must[T any](s T, err error) T

func Must0

func Must0(err error)

func Unwrap

func Unwrap(err error) error

Types

type HasInnerError

type HasInnerError interface {
	Unwrap() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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