ergo

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Unlicense Imports: 1 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotate

func Annotate(err *error, msg string)

func Annotatef

func Annotatef(err *error, format string, args ...any)

func Assert

func Assert(cond bool, msg string)

func Assertf

func Assertf(cond bool, format string, args ...any)

func Error1

func Error1[T1 any](_ T1, err error) error

func Error2

func Error2[T1 any, T2 any](_ T1, _ T2, err error) error

func Error3

func Error3[T1 any, T2 any, T3 any](_ T1, _ T2, _ T3, err error) error

func Must0

func Must0(err error)

func Must1

func Must1[T1 any](arg1 T1, err error) T1

func Must2

func Must2[T1 any, T2 any](arg1 T1, arg2 T2, err error) (T1, T2)

func Must3

func Must3[T1 any, T2 any, T3 any](arg1 T1, arg2 T2, arg3 T3, err error) (T1, T2, T3)

func Panicf

func Panicf(format string, args ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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