cmp

package
v0.0.0-...-d5f2d95 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq

func Eq[V comparable](e V) func(a V) error

func False

func False() func(a bool) error

func Gt

func Gt[V cmp.Ordered](e V) func(a V) error

func Gte

func Gte[V cmp.Ordered](e V) func(a V) error

func Len

func Len[V any, E int | func(int) error](e E) func(a V) error

func Lt

func Lt[V cmp.Ordered](e V) func(a V) error

func Lte

func Lte[V cmp.Ordered](e V) func(a V) error

func Neq

func Neq[V comparable](e V) func(a V) error

func Nil

func Nil[V any]() func(a V) error

func NotNil

func NotNil[V any]() func(a V) error

func NotZero

func NotZero[V any]() func(a V) error

func True

func True() func(a bool) error

func Zero

func Zero[V any]() func(a V) error

Types

type ErrCheck

type ErrCheck struct {
	Topic  string
	Err    error
	Actual any
}

func (*ErrCheck) Error

func (e *ErrCheck) Error() string

type ErrCondition

type ErrCondition struct {
	Op     string
	Expect any
	Actual any
}

func (*ErrCondition) Error

func (e *ErrCondition) Error() string

type ErrState

type ErrState struct {
	State  string
	Actual any
}

func (*ErrState) Error

func (e *ErrState) Error() string

Jump to

Keyboard shortcuts

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