must

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TakeOne

func TakeOne[T any](v T, err error) T

func TakeOneBool added in v0.0.6

func TakeOneBool[T any](v T, ok bool) bool

func TakeOneDiscardBool added in v0.0.6

func TakeOneDiscardBool[T any](v T, ok bool) T

apache 2.0 antlabs

func TakeOneErr

func TakeOneErr[T any](v T, err error) error

func TakeThree

func TakeThree[T, U, V any](a T, b U, c V, err error) (T, U, V)

func TakeThreeErr

func TakeThreeErr[T, U, V any](a T, b U, c V, err error) error

func TakeTwo

func TakeTwo[T, U any](a T, b U, err error) (T, U)

func TakeTwoErr

func TakeTwoErr[T, U any](a T, b U, err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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