Documentation
¶
Overview ¶
Package message provides functions for generating formatted messages for assertions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBool ¶
FromBool generates a customized message string based on a boolean result and caller information.
`callerStackIndex` specifies the depth in the call stack to retrieve the caller information. This is used to identify the source code location of the assertion. `result` is the boolean value for which to generate the message.
It returns a formatted message string and an error if one occurred during the process. The message string will be tailored based on the expression used in the assertion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.