Documentation
¶
Index ¶
- func Bool2Integer[T Integer](b bool) T
- func Contains[S ~[]E, E comparable](t common.T, s S, v E)
- func ContainsString(t common.T, s, v string)
- func DumpHex[T []byte | *bytes.Buffer](buf T) (dump string)
- func Empty(t common.T, object any)
- func Equal[T any](t common.T, want, got T, opts ...cmp.Option)
- func Equalf(t common.T, expected any, actual any, msg string, args ...any)
- func Error(t common.T, e error)
- func False(t common.T, x bool)
- func FormatInteger[T Integer](data T) string
- func FormatIntegerHex[T Integer](data T) string
- func FormatIntegerHex0x[T Integer](data T) string
- func GreaterThan[T Ordered](t common.T, big, small T)
- func GreaterThanOrEqual[T Ordered](t common.T, big, small T)
- func In[T any](t common.T, element T, slice []T, opts ...cmp.Option)
- func Integer2Bool[T Integer](value T) bool
- func IsASCIIDigit(s string) bool
- func IsIncludeLine(s string) bool
- func Len(t common.T, object any, length int)
- func LessThan[T Ordered](t common.T, small, big T)
- func LessThanOrEqual[T Ordered](t common.T, small, big T)
- func Nil(t common.T, v any)
- func NoError(t common.T, e error)
- func NotContains[S ~[]E, E comparable](t common.T, s S, v E)
- func NotContainsString(t common.T, s, v string)
- func NotEmpty(t common.T, object any)
- func NotEqual[T any](t common.T, want, got T, opts ...cmp.Option)
- func NotIn[T any](t common.T, element T, slice []T, opts ...cmp.Option)
- func NotNil(t common.T, v any)
- func NotPanics(t common.T, expected any)
- func NotZero(t common.T, v any)
- func Panics(t common.T, f func())
- func True(t common.T, x bool)
- func UnsignedInteger[T Unsigned](t common.T, want, got T, opts ...cmp.Option)
- func ValueIsBytesType(v reflect.Value) bool
- func Zero(t common.T, v any)
- type Complex
- type Float
- type Integer
- type Ordered
- type Signed
- type Unsigned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool2Integer ¶
func Contains ¶
func Contains[S ~[]E, E comparable](t common.T, s S, v E)
func ContainsString ¶
func FormatInteger ¶
func FormatIntegerHex ¶
func FormatIntegerHex0x ¶
func GreaterThan ¶
func GreaterThanOrEqual ¶
func Integer2Bool ¶
func IsASCIIDigit ¶
func IsIncludeLine ¶
func LessThanOrEqual ¶
func NotContains ¶
func NotContains[S ~[]E, E comparable](t common.T, s S, v E)
func NotContainsString ¶
func UnsignedInteger ¶
func ValueIsBytesType ¶
Types ¶
type Complex ¶
type Complex interface { ~complex64 | ~complex128 }
Click to show internal directories.
Click to hide internal directories.