must

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A[T any](r T, err error) T

func Close

func Close(c io.Closer)

Close closes the file and panic on error. Useful in defer statement.

func Must

func Must(err error)

Must panics if err is not nil.

func True

func True(b bool)

True checks b is true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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