errors

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureHasKey added in v0.13.0

func EnsureHasKey[K comparable, V any](value map[K]V, key K, format string, args ...any)

EnsureHasKey panics if the given map does not contain the given key.

func EnsureNotEmpty added in v0.8.1

func EnsureNotEmpty(value string, format string, args ...any)

EnsureNotEmpty panics if the given string is empty.

func EnsureNotNil

func EnsureNotNil(pointer any, format string, args ...any)

EnsureNotNil panics if the given pointer is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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