contract

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package contract provides Design by Contract functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureError

func EnsureError(err error, expected ...error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL