Documentation ¶
Overview ¶
Package contract provides Design by Contract functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureError ¶
EnsureError checks that error is either nil or one of expected errors.
If that is not the case, EnsureError panics in debug builds. It does nothing in non-debug builds.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.