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 ¶ added in v1.0.0
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 ¶ added in v0.1.1
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 ¶ added in v1.1.0
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.