must

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must[T any, E any](val T, err E) T

func Must3

func Must3[T1 any, T2 any, E any](val1 T1, val2 T2, err E) (T1, T2)

func PMust

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

PMust panic if err is not nil

func PMust3

func PMust3[T1 any, T2 any](val1 T1, val2 T2, err error) (T1, T2)

PMust3 panic if err is not nil

func PMustBool

func PMustBool[T any](val T, ok bool) T

func PMustBool3

func PMustBool3[T1 any, T2 any](val1 T1, val2 T2, ok bool) (T1, T2)

Types

This section is empty.

Jump to

Keyboard shortcuts

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