Documentation ¶
Overview ¶
Package assert provides a set of assertion functions.
Index ¶
- func Contains(a any, b any) bool
- func ContainsAll[T any](a T, v []T) bool
- func ContainsAny[T any](a T, v []T) bool
- func ContainsNone[T any](a T, v []T) bool
- func Equal[T any](a, b T) bool
- func Implements(a, iface any) bool
- func Kind(a any, kind reflect.Kind) bool
- func Lowercase(s string) bool
- func Nil(a any) bool
- func Number(a any) bool
- func Panic(f func()) (panicked bool)
- func Unique[T any](s []T) bool
- func Uppercase(s string) bool
- func Zero(a any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAll ¶
ContainsAll returns true if all values are contained in a.
func ContainsAny ¶
ContainsAny returns true if any of the values are contained in a.
func ContainsNone ¶
ContainsNone returns true if none of the values are contained in a.
func Implements ¶
Implements returns true if the value implements the interface.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.