package
Version:
v0.6.17
Opens a new window with list of versions in this module.
Published: Oct 2, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package panics provides functions to handle panic assertions.
func IsEmpty(result any, fmtAndArgs ...any)
IsEmpty assert result is empty, otherwise will panic
func IsFalse(result bool, fmtAndArgs ...any)
IsFalse assert result is false, otherwise will panic
func IsNil(result any, fmtAndArgs ...any)
IsNil assert result is nil, otherwise will panic
func IsTrue(result bool, fmtAndArgs ...any)
IsTrue assert result is true, otherwise will panic
func NotEmpty(result any, fmtAndArgs ...any)
NotEmpty assert result is empty, otherwise will panic
func NotNil(result any, fmtAndArgs ...any)
NotNil assert result is non-nil, otherwise will panic
Source Files
¶
Click to show internal directories.
Click to hide internal directories.