package
1.4.1
Repository: https://github.com/m-lab/go.git
Documentation: pkg.go.dev

# README

Functions that maybe should be part of the standard go runtime.

Contains a function Must that calls log.Fatal with a nice error message if its first argument is not a nil error. Using Must aids in the pursuit of 100% code coverage, because it means that the error pathway of log.Fatal is in this package instead of inline with the code being tested.

# Functions

Must will call log.Fatal if passed a non-nil error.
PanicOnError will call panic if passed a non-nil error.