ensure

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MAP_CONTAINS_KEY_FMT = "Map expected to have key '%v' but only had [%s]"
View Source
const NOT_NILL_FMT = "Value expected not to be nil: %s"

Variables

View Source
var OnFail = func(format string, args ...any) {
	fmt.Println("ASSERT FAILED:\n" + fmt.Sprintf(format, args...))
	os.Exit(1)
}

Functions

func MapContainsKey

func MapContainsKey[K comparable, V any](in map[K]V, key K)

func NotNil added in v1.0.10

func NotNil(in interface{}, reason string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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