assert

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package assert implements assertion functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T comparable](s string, a, b T)

Equal panics in case a does not equal b.

func Panic

func Panic(s string)

Panic panics.

func Panicf

func Panicf(format string, a ...any)

Panicf panics.

func T2Panicf

func T2Panicf[T1 any, T2 any](format string, a ...any) (T1, T2)

T2Panicf panics.

func TPanicf

func TPanicf[T any](format string, a ...any) T

TPanicf panics.

func True

func True(s string, b bool)

True panics in case b is false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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