required

package
v0.7.0-dev.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package required answers whether a required collaborator handed to a constructor is missing.

A nil pointer passed as an interface value, or a pointer field boxed into any for this check, is a live interface for which `v == nil` is false. A guard written that way passes while the bug it exists for is live, and the first method call panics far from the constructor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Missing

func Missing(v any) bool

Missing reports whether v is nil, including a nil pointer, map, slice, func or channel held in a non-nil interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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