Documentation
¶
Index ¶
- func Caller() string
- func Contains[C any](i C, c interfaces.ContainsFunc[C]) (s string)
- func ContainsSubset[C any](elements []C, container interfaces.ContainsFunc[C]) (s string)
- func Empty(e interfaces.EmptyFunc) (s string)
- func Eq[A any](exp, val A, opts ...cmp.Option) (s string)
- func EqError(err error, msg string) (s string)
- func EqFunc[A any](exp, val A, eq func(a, b A) bool) (s string)
- func EqJSON(exp, val string) (s string)
- func EqOp[C comparable](exp, val C) (s string)
- func EqSliceFunc[A, B any](exp []B, val []A, eq func(a A, b B) bool) (s string)
- func Equal[E interfaces.EqualFunc[E]](exp, val E) (s string)
- func Error(err error) (s string)
- func ErrorAs[E error, Target *E](err error, target Target) (s string)
- func ErrorContains(err error, sub string) (s string)
- func ErrorIs(err error, target error) (s string)
- func False(condition bool) (s string)
- func Length(n int, length interfaces.LengthFunc) (s string)
- func Lesser[L interfaces.LessFunc[L]](exp, val L) (s string)
- func MapContainsKey[M ~map[K]V, K comparable, V any](m M, key K) (s string)
- func MapContainsKeys[M ~map[K]V, K comparable, V any](m M, keys []K) (s string)
- func MapContainsValue[M ~map[K]V, K comparable, V any](m M, val V, opts cmp.Options) (s string)
- func MapContainsValueEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, val V) (s string)
- func MapContainsValueFunc[M ~map[K]V, K comparable, V any](m M, val V, eq func(V, V) bool) (s string)
- func MapContainsValues[M ~map[K]V, K comparable, V any](m M, vals []V, opts cmp.Options) (s string)
- func MapContainsValuesEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, vals []V) (s string)
- func MapContainsValuesFunc[M ~map[K]V, K comparable, V any](m M, vals []V, eq func(V, V) bool) (s string)
- func MapEmpty[M ~map[K]V, K comparable, V any](m M) (s string)
- func MapEq[M1, M2 interfaces.Map[K, V], K comparable, V any](exp M1, val M2, opts cmp.Options) (s string)
- func MapEqFunc[M1, M2 interfaces.Map[K, V], K comparable, V any](exp M1, val M2, eq func(V, V) bool) (s string)
- func MapEqOp[M interfaces.Map[K, V], K, V comparable](exp, val M) (s string)
- func MapEqual[M interfaces.MapEqualFunc[K, V], K comparable, V interfaces.EqualFunc[V]](exp, val M) (s string)
- func MapLen[M ~map[K]V, K comparable, V any](n int, m M) (s string)
- func MapNotContainsKey[M ~map[K]V, K comparable, V any](m M, key K) (s string)
- func MapNotContainsKeys[M ~map[K]V, K comparable, V any](m M, keys []K) (s string)
- func MapNotContainsValue[M ~map[K]V, K comparable, V any](m M, val V, opts cmp.Options) (s string)
- func MapNotContainsValueEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, val V) (s string)
- func MapNotContainsValueFunc[M ~map[K]V, K comparable, V any](m M, val V, eq func(V, V) bool) (s string)
- func MapNotContainsValues[M ~map[K]V, K comparable, V any](m M, vals []V, opts cmp.Options) (s string)
- func MapNotContainsValuesEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, vals []V) (s string)
- func MapNotContainsValuesFunc[M ~map[K]V, K comparable, V any](m M, vals []V, eq func(V, V) bool) (s string)
- func MapNotEmpty[M ~map[K]V, K comparable, V any](m M) (s string)
- func Nil(val any) string
- func NoError(err error) (s string)
- func NonZero[N interfaces.Number](value N) (s string)
- func NotContains[C any](i C, c interfaces.ContainsFunc[C]) (s string)
- func NotEmpty(e interfaces.EmptyFunc) (s string)
- func NotEq[A any](exp, val A, opts ...cmp.Option) (s string)
- func NotEqFunc[A any](exp, val A, eq func(a, b A) bool) (s string)
- func NotEqOp[C comparable](exp, val C) (s string)
- func NotEqual[E interfaces.EqualFunc[E]](exp, val E) (s string)
- func NotNil(a any) (s string)
- func Size(n int, size interfaces.SizeFunc) (s string)
- func SliceContains[A any](slice []A, item A, opts ...cmp.Option) (s string)
- func SliceContainsEqual[E interfaces.EqualFunc[E]](slice []E, item E) (s string)
- func SliceContainsFunc[A, B any](slice []A, item B, eq func(a A, b B) bool) (s string)
- func SliceContainsOp[C comparable](slice []C, item C) (s string)
- func SliceEmpty[A any](slice []A) (s string)
- func SliceEqOp[A comparable, S ~[]A](exp, val S) (s string)
- func SliceEqual[E interfaces.EqualFunc[E]](exp, val []E) (s string)
- func SliceLen[A any](n int, slice []A) (s string)
- func SliceNotContains[A any](slice []A, item A, opts ...cmp.Option) (s string)
- func SliceNotEmpty[A any](slice []A) (s string)
- func True(condition bool) string
- func Unreachable() (s string)
- func ValidJSON(input string) (s string)
- func ValidJSONBytes(input []byte) (s string)
- func Zero[N interfaces.Number](value N) (s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶ added in v1.0.7
func Contains[C any](i C, c interfaces.ContainsFunc[C]) (s string)
func ContainsSubset ¶ added in v1.0.7
func ContainsSubset[C any](elements []C, container interfaces.ContainsFunc[C]) (s string)
func Empty ¶ added in v1.0.7
func Empty(e interfaces.EmptyFunc) (s string)
func EqOp ¶
func EqOp[C comparable](exp, val C) (s string)
func EqSliceFunc ¶
func Equal ¶
func Equal[E interfaces.EqualFunc[E]](exp, val E) (s string)
func ErrorContains ¶
func Length ¶ added in v1.0.7
func Length(n int, length interfaces.LengthFunc) (s string)
func Lesser ¶
func Lesser[L interfaces.LessFunc[L]](exp, val L) (s string)
func MapContainsKey ¶
func MapContainsKey[M ~map[K]V, K comparable, V any](m M, key K) (s string)
func MapContainsKeys ¶
func MapContainsKeys[M ~map[K]V, K comparable, V any](m M, keys []K) (s string)
func MapContainsValue ¶
func MapContainsValue[M ~map[K]V, K comparable, V any](m M, val V, opts cmp.Options) (s string)
func MapContainsValueEqual ¶
func MapContainsValueEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, val V) (s string)
func MapContainsValueFunc ¶
func MapContainsValueFunc[M ~map[K]V, K comparable, V any](m M, val V, eq func(V, V) bool) (s string)
func MapContainsValues ¶
func MapContainsValues[M ~map[K]V, K comparable, V any](m M, vals []V, opts cmp.Options) (s string)
func MapContainsValuesEqual ¶
func MapContainsValuesEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, vals []V) (s string)
func MapContainsValuesFunc ¶
func MapContainsValuesFunc[M ~map[K]V, K comparable, V any](m M, vals []V, eq func(V, V) bool) (s string)
func MapEmpty ¶
func MapEmpty[M ~map[K]V, K comparable, V any](m M) (s string)
func MapEq ¶
func MapEq[M1, M2 interfaces.Map[K, V], K comparable, V any](exp M1, val M2, opts cmp.Options) (s string)
func MapEqFunc ¶
func MapEqFunc[M1, M2 interfaces.Map[K, V], K comparable, V any](exp M1, val M2, eq func(V, V) bool) (s string)
func MapEqOp ¶
func MapEqOp[M interfaces.Map[K, V], K, V comparable](exp, val M) (s string)
func MapEqual ¶
func MapEqual[M interfaces.MapEqualFunc[K, V], K comparable, V interfaces.EqualFunc[V]](exp, val M) (s string)
func MapNotContainsKey ¶
func MapNotContainsKey[M ~map[K]V, K comparable, V any](m M, key K) (s string)
func MapNotContainsKeys ¶
func MapNotContainsKeys[M ~map[K]V, K comparable, V any](m M, keys []K) (s string)
func MapNotContainsValue ¶
func MapNotContainsValue[M ~map[K]V, K comparable, V any](m M, val V, opts cmp.Options) (s string)
func MapNotContainsValueEqual ¶
func MapNotContainsValueEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, val V) (s string)
func MapNotContainsValueFunc ¶
func MapNotContainsValueFunc[M ~map[K]V, K comparable, V any](m M, val V, eq func(V, V) bool) (s string)
func MapNotContainsValues ¶
func MapNotContainsValues[M ~map[K]V, K comparable, V any](m M, vals []V, opts cmp.Options) (s string)
func MapNotContainsValuesEqual ¶
func MapNotContainsValuesEqual[M ~map[K]V, K comparable, V interfaces.EqualFunc[V]](m M, vals []V) (s string)
func MapNotContainsValuesFunc ¶
func MapNotContainsValuesFunc[M ~map[K]V, K comparable, V any](m M, vals []V, eq func(V, V) bool) (s string)
func MapNotEmpty ¶
func MapNotEmpty[M ~map[K]V, K comparable, V any](m M) (s string)
func NonZero ¶
func NonZero[N interfaces.Number](value N) (s string)
func NotContains ¶ added in v1.0.7
func NotContains[C any](i C, c interfaces.ContainsFunc[C]) (s string)
func NotEmpty ¶ added in v1.0.7
func NotEmpty(e interfaces.EmptyFunc) (s string)
func NotEqOp ¶
func NotEqOp[C comparable](exp, val C) (s string)
func NotEqual ¶
func NotEqual[E interfaces.EqualFunc[E]](exp, val E) (s string)
func SliceContainsEqual ¶
func SliceContainsEqual[E interfaces.EqualFunc[E]](slice []E, item E) (s string)
func SliceContainsFunc ¶
func SliceContainsOp ¶
func SliceContainsOp[C comparable](slice []C, item C) (s string)
func SliceEmpty ¶
func SliceEqOp ¶
func SliceEqOp[A comparable, S ~[]A](exp, val S) (s string)
func SliceEqual ¶
func SliceEqual[E interfaces.EqualFunc[E]](exp, val []E) (s string)
func SliceNotContains ¶
func SliceNotEmpty ¶
func Unreachable ¶
func Unreachable() (s string)
func ValidJSONBytes ¶
func Zero ¶
func Zero[N interfaces.Number](value N) (s string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.