Documentation ¶
Overview ¶
Package must provides helper functions that panic on error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeTrue ¶
func BeTrue(b bool)
BeTrue panic if the b is not true.
Use that function only for static initialization, test code, or statemants that "can't" be false. When in doubt, don't.
func NoError ¶
func NoError(err error)
NoError panics if the error is not nil.
Use that function only for static initialization, test code, or code that "can't" fail. When in doubt, don't.
func NotBeZero ¶
func NotBeZero[T comparable](v T)
NotBeZero panics if argument has zero value.
Use that function only for static initialization, test code, or code that "can't" fail. When in doubt, don't.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.