Documentation ¶
Overview ¶
Package invariant provides helpers for checking and panicing on faulty invariants.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNotf ¶
func CheckNotf(b bool, msgAndArgs ...interface{})
CheckNotf will raise an error with the provided message in case b is true. CheckNotf accept a fmt.Sprintf compatible format string with parameters.
func Checkf ¶
func Checkf(b bool, msgAndArgs ...interface{})
Checkf will raise an error in case b is false. Checkf accept a fmt.Sprintf compatible format string with parameters.
func Unreachable ¶
func Unreachable(msg string)
Unreachable marks some code sequence that must never be executed.
func Unreachablef ¶
func Unreachablef(f string, vs ...interface{})
Unreachablef marks some code sequence that must never be executed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.