Help us shape the future of Go! Take the 2026 Go Developer Survey

must

package
v1.53.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 0 Imported by: 18

Documentation

Overview

the missing go error package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeOK added in v1.39.1

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

func Do

func Do(err error)

func DoFunc added in v1.24.0

func DoFunc(f func() error) func()

func Get

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

func Get2 added in v1.45.3

func Get2[T0, T1 any](v0 T0, v1 T1, err error) (T0, T1)

Types

This section is empty.

Jump to

Keyboard shortcuts

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