Versions in this module Expand all Collapse all v0 v0.0.1 Jan 19, 2025 Changes in this version + func IsCastError(err error) bool + func IsNilError(err error) bool + func IsOverflowError(err error) bool + func ToBool(value interface{}) (bool, error) + func ToBoolSlice(i interface{}) ([]bool, error) + func ToFloatSlice[T float32 | float64](i interface{}) ([]T, error) + func ToFloat[T float32 | float64](value interface{}) (T, error) + func ToSignedSlice[T int | int8 | int16 | int32 | int64](i interface{}) ([]T, error) + func ToSigned[T int | int8 | int16 | int32 | int64](value interface{}) (T, error) + func ToSlice(value interface{}) ([]interface{}, error) + func ToString(value interface{}) (string, error) + func ToStringSlice(i interface{}) ([]string, error) + func ToUnsignedSlice[T uint | uint8 | uint16 | uint32 | uint64](i interface{}) ([]T, error) + func ToUnsigned[T uint | uint8 | uint16 | uint32 | uint64](value interface{}) (T, error) + type BoolErrorProvider interface + Bool func() (bool, error) + type BoolProvider interface + Bool func() bool + type BoolSliceErrorProvider interface + BoolSlice func() ([]bool, error) + type BoolSliceProvider interface + BoolSlice func() []bool + type Caster interface + Bool func() (bool, error) + BoolSafe func(fallback bool) bool + BoolSlice func() ([]bool, error) + BoolSliceSafe func(fallback []bool) []bool + Float32 func() (float32, error) + Float32Safe func(fallback float32) float32 + Float32Slice func() ([]float32, error) + Float32SliceSafe func(fallback []float32) []float32 + Float64 func() (float64, error) + Float64Safe func(fallback float64) float64 + Float64Slice func() ([]float64, error) + Float64SliceSafe func(fallback []float64) []float64 + Int func() (int, error) + Int16 func() (int16, error) + Int16Safe func(fallback int16) int16 + Int16Slice func() ([]int16, error) + Int16SliceSafe func(fallback []int16) []int16 + Int32 func() (int32, error) + Int32Safe func(fallback int32) int32 + Int32Slice func() ([]int32, error) + Int32SliceSafe func(fallback []int32) []int32 + Int64 func() (int64, error) + Int64Safe func(fallback int64) int64 + Int64Slice func() ([]int64, error) + Int64SliceSafe func(fallback []int64) []int64 + Int8 func() (int8, error) + Int8Safe func(fallback int8) int8 + Int8Slice func() ([]int8, error) + Int8SliceSafe func(fallback []int8) []int8 + IntSafe func(fallback int) int + IntSlice func() ([]int, error) + IntSliceSafe func(fallback []int) []int + Interface func() any + IsNil func() bool + Slice func() ([]any, error) + SliceSafe func(fallback []any) []any + String func() (string, error) + StringSafe func(fallback string) string + StringSlice func() ([]string, error) + StringSliceSafe func(fallback []string) []string + Uint func() (uint, error) + Uint16 func() (uint16, error) + Uint16Safe func(fallback uint16) uint16 + Uint16Slice func() ([]uint16, error) + Uint16SliceSafe func(fallback []uint16) []uint16 + Uint32 func() (uint32, error) + Uint32Safe func(fallback uint32) uint32 + Uint32Slice func() ([]uint32, error) + Uint32SliceSafe func(fallback []uint32) []uint32 + Uint64 func() (uint64, error) + Uint64Safe func(fallback uint64) uint64 + Uint64Slice func() ([]uint64, error) + Uint64SliceSafe func(fallback []uint64) []uint64 + Uint8 func() (uint8, error) + Uint8Safe func(fallback uint8) uint8 + Uint8Slice func() ([]uint8, error) + Uint8SliceSafe func(fallback []uint8) []uint8 + UintSafe func(fallback uint) uint + UintSlice func() ([]uint, error) + UintSliceSafe func(fallback []uint) []uint + Unmarshal func(out any) error + func NewCaster(v interface{}) Caster + type Float32ErrorProvider interface + Float32 func() (float32, error) + type Float32Provider interface + Float32 func() float32 + type Float32SliceErrorProvider interface + Float32Slice func() ([]float32, error) + type Float32SliceProvider interface + Float32Slice func() []float32 + type Float64ErrorProvider interface + Float64 func() (float64, error) + type Float64Provider interface + Float64 func() float64 + type Float64SliceErrorProvider interface + Float64Slice func() ([]float64, error) + type Float64SliceProvider interface + Float64Slice func() []float64 + type Int16ErrorProvider interface + Int16 func() (int16, error) + type Int16Provider interface + Int16 func() int16 + type Int16SliceErrorProvider interface + Int16Slice func() ([]int16, error) + type Int16SliceProvider interface + Int16Slice func() []int16 + type Int32ErrorProvider interface + Int32 func() (int32, error) + type Int32Provider interface + Int32 func() int32 + type Int32SliceErrorProvider interface + Int32Slice func() ([]int32, error) + type Int32SliceProvider interface + Int32Slice func() []int32 + type Int64ErrorProvider interface + Int64 func() (int64, error) + type Int64Provider interface + Int64 func() int64 + type Int64SliceErrorProvider interface + Int64Slice func() ([]int64, error) + type Int64SliceProvider interface + Int64Slice func() []int64 + type Int8ErrorProvider interface + Int8 func() (int8, error) + type Int8Provider interface + Int8 func() int8 + type Int8SliceErrorProvider interface + Int8Slice func() ([]int8, error) + type Int8SliceProvider interface + Int8Slice func() []int8 + type IntErrorProvider interface + Int func() (int, error) + type IntProvider interface + Int func() int + type IntSliceErrorProvider interface + IntSlice func() ([]int, error) + type IntSliceProvider interface + IntSlice func() []int + type SliceErrorProvider interface + Slice func() ([]any, error) + type SliceProvider interface + Slice func() []any + type StringErrorProvider interface + String func() (string, error) + type StringProvider interface + String func() string + type StringSliceErrorProvider interface + StringSlice func() ([]string, error) + type StringSliceProvider interface + StringSlice func() []string + type Uint16ErrorProvider interface + Uint16 func() (uint16, error) + type Uint16Provider interface + Uint16 func() uint16 + type Uint16SliceErrorProvider interface + Uint16Slice func() ([]uint16, error) + type Uint16SliceProvider interface + Uint16Slice func() []uint16 + type Uint32ErrorProvider interface + Uint32 func() (uint32, error) + type Uint32Provider interface + Uint32 func() uint32 + type Uint32SliceErrorProvider interface + Uint32Slice func() ([]uint32, error) + type Uint32SliceProvider interface + Uint32Slice func() []uint32 + type Uint64ErrorProvider interface + Uint64 func() (uint64, error) + type Uint64Provider interface + Uint64 func() uint64 + type Uint64SliceErrorProvider interface + Uint64Slice func() ([]uint64, error) + type Uint64SliceProvider interface + Uint64Slice func() []uint64 + type Uint8ErrorProvider interface + Uint8 func() (uint8, error) + type Uint8Provider interface + Uint8 func() uint8 + type Uint8SliceErrorProvider interface + Uint8Slice func() ([]uint8, error) + type Uint8SliceProvider interface + Uint8Slice func() []uint8 + type UintErrorProvider interface + Uint func() (uint, error) + type UintProvider interface + Uint func() uint + type UintSliceErrorProvider interface + UintSlice func() ([]uint, error) + type UintSliceProvider interface + UintSlice func() []uint