must

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeInitializedPtr

func BeInitializedPtr(val interface{}, errorStr string)

BeInitializedPtr panics with errorStr if val interface is nil

func BeTrue

func BeTrue(condition bool, errorStr string)

BeTrue panics when condition is false

func BeTypeKind

func BeTypeKind(v interface{}, kind reflect.Kind, errorStr string)

BeTypeKind panics with errorStr error, if v interface is not of reflect kind

func TypeBeOfKind

func TypeBeOfKind(v reflect.Type, kind reflect.Kind, errorStr string)

TypeBeOfKind panics with errorStr error, if v type is not of reflect kind

func ValueBeOfTypeKind

func ValueBeOfTypeKind(v reflect.Value, kind reflect.Kind, errorStr string)

ValueBeOfTypeKind panics with errorStr error, if v value is not of reflect kind

Types

This section is empty.

Jump to

Keyboard shortcuts

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