must

package
v0.0.0-...-2148625 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 27

Documentation

Overview

Package must contains helpers that panic on failure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(c io.Closer)

Close calls c.Close and panics if it returns an error. The panic value is the return value from Close.

func Do

func Do(fn func() error)

Do runs fn and panics if it returns an error. The panic value is the return value from fn.

Types

This section is empty.

Jump to

Keyboard shortcuts

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