must

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package must provides a simple way to panic if an error is not nil. It should be used only in initialisation phase, in places where error is most probably problem with the code itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeTrue

func BeTrue(condition bool, format string, args ...interface{})

BeTrue is a simple way to panic if the condition is false.

func HaveNoError

func HaveNoError(err error)

HaveNoError panics if the error is not nil.

func HaveNoErrorf

func HaveNoErrorf(err error, format string, args ...interface{})

HaveNoErrorf panics if the error is not nil, wrapping error with a message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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