package die

import "git.wntrmute.dev/kyle/goutils/die"

Package die contains utilities for fatal error handling.

Index

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 ...interface{})

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

func With

func With(fstr string, args ...interface{})

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

Source Files

die.go

Version
v1.7.7 (latest)
Published
Jun 15, 2024
Platform
linux/amd64
Imports
2 packages
Last checked
4 days ago

Tools for package owners.