die

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 4

Documentation

Overview

Package die contains utilities for fatal error handling. It presents simple fatal utilities for Go programs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If(err error)

If prints the error to stderr and exits if err != nil.

func When

func When(cond bool, fstr string, args ...any)

When prints the error to stderr and exits if cond is true.

func With

func With(fstr string, args ...any)

With prints the message to stderr, appending a newline, and exits.

Types

This section is empty.

Jump to

Keyboard shortcuts

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