should

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package should lets callers indicate impossible conditions from the code.

It is a lightweight way to make these impossible conditions observable, when it is hooked up with an appropriate monitoring framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Never

func Never(condition string)

Never indicates that the given condition should never (or seldomly) happen.

Callers should only pass a fixed set of strings to Never(), to avoid a state explosion in monitoring counters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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