package die
import "git.wntrmute.dev/kyle/goutils/die"
Package die contains utilities for fatal error handling.
Index ¶
- func If(err error)
- func When(cond bool, fstr string, args ...interface{})
- func With(fstr string, args ...interface{})
Functions ¶
func If ¶
func If(err error)
If prints the error to stderr and exits if err != nil.
func When ¶
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.