Documentation ¶
Index ¶
- func ArrayOf[T any, R any](fn func(v T) (R, bool)) func(v interface{}) ([]R, bool)
- func AsNullable[T any, R any](fn func(v T) (R, bool)) func(v Nullable[T]) (Nullable[R], bool)
- func CanCast(from, to DataColumnType) bool
- func CastBlobToAny[T ~[]byte](v T) (interface{}, bool)
- func CastBlobToString[T ~[]byte, R ~string](v T) (R, bool)
- func CastBoolToAny[T ~bool](v T) (interface{}, bool)
- func CastBoolToBool[T ~bool, R ~bool](v T) (R, bool)
- func CastBoolToNumber[T ~bool, R Int | Uint | Float | Complex](v T) (R, bool)
- func CastBoolToString[T ~bool, R ~string](v T) (R, bool)
- func CastComplexToAny[T Complex](v T) (interface{}, bool)
- func CastComplexToBool[T Complex, R ~bool](v T) (R, bool)
- func CastComplexToComplex[T Complex, R Complex](v T) (R, bool)
- func CastComplexToNumber[T Complex, R Int | Uint | Float](v T) (R, bool)
- func CastComplexToString[T Complex, R ~string](v T) (R, bool)
- func CastComplexToTime[T Complex](v T) (time.Time, bool)
- func CastComplexToTimeRange[T Complex](v T) (TimeRange, bool)
- func CastFloatToBool[T Float, R ~bool](v T) (R, bool)
- func CastFloatToString[T Float, R ~string](v T) (R, bool)
- func CastFloatToTime[T Float](v T) (time.Time, bool)
- func CastFloatToTimeRange[T Float](v T) (TimeRange, bool)
- func CastFuncOf[R any](fn func(v interface{}) (R, bool)) CastFunc
- func CastIntToString[T Int, R ~string](v T) (R, bool)
- func CastIntegerToBool[T Int | Uint, R ~bool](v T) (R, bool)
- func CastIntegerToTime[T Int | Uint](v T) (time.Time, bool)
- func CastIntegerToTimeRange[T Int | Uint](v T) (TimeRange, bool)
- func CastNumberToAny[T Int | Uint | Float](v T) (interface{}, bool)
- func CastNumberToComplex[T Int | Uint | Float, R Complex](v T) (R, bool)
- func CastNumberToNumber[T Int | Uint | Float, R Int | Uint | Float](v T) (R, bool)
- func CastStringToAny[T ~string](v T) (interface{}, bool)
- func CastStringToBool[T ~string, R ~bool](v T) (R, bool)
- func CastStringToComplex[T ~string, R Complex](v T) (R, bool)
- func CastStringToFloat[T ~string, R Float](v T) (R, bool)
- func CastStringToInt[T ~string, R Int](v T) (R, bool)
- func CastStringToString[T ~string, R ~string](v T) (R, bool)
- func CastStringToTime[T ~string](v T) (time.Time, bool)
- func CastStringToTimeRange[T ~string](v T) (TimeRange, bool)
- func CastStringToUint[T ~string, R Uint](v T) (R, bool)
- func CastTimeRangeToAny(v TimeRange) (interface{}, bool)
- func CastTimeRangeToComplex[R Complex](v TimeRange) (R, bool)
- func CastTimeRangeToNumber[R Int | Uint | Float](v TimeRange) (R, bool)
- func CastTimeRangeToString[R ~string](v TimeRange) (R, bool)
- func CastTimeRangeToTime(v TimeRange) (time.Time, bool)
- func CastTimeRangeToTimeRange(v TimeRange) (TimeRange, bool)
- func CastTimeToAny(v time.Time) (interface{}, bool)
- func CastTimeToComplex[R Complex](v time.Time) (R, bool)
- func CastTimeToNumber[R Int | Uint | Float](v time.Time) (R, bool)
- func CastTimeToString[R ~string](v time.Time) (R, bool)
- func CastTimeToTime(v time.Time) (time.Time, bool)
- func CastTimeToTimeRange(v time.Time) (TimeRange, bool)
- func CastToItself[T any](v interface{}) (ret interface{}, ok bool)
- func CastUintToString[T Uint, R ~string](v T) (R, bool)
- func Combine(funcs ...CastFunc) CastFunc
- func Fail(v interface{}) (ret interface{}, ok bool)
- func FailR[R any](v interface{}) (ret R, ok bool)
- func FailTR[T, R any](v T) (ret R, ok bool)
- func GenerateCastFunc[T any, R any](from, to DataColumnType, fn func(v T) (R, bool)) CastFunc
- func GetArithmeticPromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
- func GetCastFunc(from, to DataColumnType) CastFunc
- func GetComparingPromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
- func GetConcatPromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
- func GetInRangePromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
- func GetType(rt reflect.Type) DataColumnType
- func NewArrayCastFunc[T any, R any](fn func(v T) (R, bool)) CastFunc
- func NewCastFunc[T any, R any](fn func(v T) (R, bool)) CastFunc
- func NewRawArrayCastFunc[T any, R any](fn func(v T) (R, bool)) func(v interface{}) ([]R, bool)
- func NewRawCastFunc[T any, R any](fn func(v T) (R, bool)) func(v interface{}) (R, bool)
- func RawCastToItself[T any](v interface{}) (ret T, ok bool)
- func ToAny(v interface{}) (interface{}, bool)
- func ToBlob[R ~[]byte](v interface{}) (R, bool)
- func ToBool[R ~bool](v interface{}) (R, bool)
- func ToComplex[R Complex](v interface{}) (R, bool)
- func ToFloat[R Float](v interface{}) (R, bool)
- func ToInt[R Int](v interface{}) (R, bool)
- func ToNullableAny(v interface{}) (Nullable[interface{}], bool)
- func ToNullableBlob[R ~[]byte](v interface{}) (Nullable[R], bool)
- func ToNullableBool[R ~bool](v interface{}) (Nullable[R], bool)
- func ToNullableComplex[R Complex](v interface{}) (Nullable[R], bool)
- func ToNullableFloat[R Float](v interface{}) (Nullable[R], bool)
- func ToNullableInt[R Int](v interface{}) (Nullable[R], bool)
- func ToNullableString[R ~string](v interface{}) (Nullable[R], bool)
- func ToNullableTime(v interface{}) (Nullable[time.Time], bool)
- func ToNullableTimeRange(v interface{}) (Nullable[TimeRange], bool)
- func ToNullableUint[R Uint](v interface{}) (Nullable[R], bool)
- func ToString[R ~string](v interface{}) (R, bool)
- func ToTime(v interface{}) (time.Time, bool)
- func ToTimeRange(v interface{}) (TimeRange, bool)
- func ToUint[R Uint](v interface{}) (R, bool)
- func UnwrapNullable[T any, R any](fn func(v T) (R, bool)) func(v Nullable[T]) (R, bool)
- func WrapNullable[T any, R any](fn func(v T) (R, bool)) func(v T) (Nullable[R], bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsNullable ¶
func CastBlobToAny ¶
func CastBlobToString ¶
func CastBoolToAny ¶
func CastBoolToBool ¶
func CastBoolToNumber ¶
func CastBoolToString ¶
func CastComplexToAny ¶
func CastComplexToAny[T Complex](v T) (interface{}, bool)
func CastComplexToBool ¶
func CastComplexToComplex ¶
func CastComplexToComplex[T Complex, R Complex](v T) (R, bool)
func CastComplexToNumber ¶
func CastComplexToNumber[T Complex, R Int | Uint | Float](v T) (R, bool)
func CastComplexToString ¶
func CastComplexToTime ¶
func CastComplexToTimeRange ¶
func CastComplexToTimeRange[T Complex](v T) (TimeRange, bool)
func CastFloatToBool ¶
func CastFloatToString ¶
func CastFloatToTime ¶
func CastFloatToTimeRange ¶
func CastFloatToTimeRange[T Float](v T) (TimeRange, bool)
func CastFuncOf ¶
func CastIntToString ¶
func CastIntegerToBool ¶
func CastIntegerToTime ¶
func CastIntegerToTimeRange ¶
func CastIntegerToTimeRange[T Int | Uint](v T) (TimeRange, bool)
func CastNumberToAny ¶
func CastNumberToAny[T Int | Uint | Float](v T) (interface{}, bool)
func CastNumberToComplex ¶
func CastNumberToComplex[T Int | Uint | Float, R Complex](v T) (R, bool)
func CastNumberToNumber ¶
func CastNumberToNumber[T Int | Uint | Float, R Int | Uint | Float](v T) (R, bool)
func CastStringToAny ¶
func CastStringToBool ¶
func CastStringToComplex ¶
func CastStringToFloat ¶
func CastStringToInt ¶
func CastStringToString ¶
func CastStringToTimeRange ¶
func CastStringToUint ¶
func CastTimeRangeToAny ¶
func CastTimeRangeToAny(v TimeRange) (interface{}, bool)
func CastTimeRangeToComplex ¶
func CastTimeRangeToComplex[R Complex](v TimeRange) (R, bool)
func CastTimeRangeToNumber ¶
func CastTimeRangeToNumber[R Int | Uint | Float](v TimeRange) (R, bool)
func CastTimeRangeToString ¶
func CastTimeRangeToTime ¶
func CastTimeRangeToTimeRange ¶
func CastTimeRangeToTimeRange(v TimeRange) (TimeRange, bool)
func CastTimeToAny ¶
func CastTimeToComplex ¶
func CastTimeToNumber ¶
func CastTimeToTimeRange ¶
func CastToItself ¶
func CastUintToString ¶
func GenerateCastFunc ¶
func GetArithmeticPromotedType ¶
func GetArithmeticPromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
For `<`, `<=`, `>`, `>=` and arithmetic operators
func GetCastFunc ¶
func GetCastFunc(from, to DataColumnType) CastFunc
func GetComparingPromotedType ¶
func GetComparingPromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
For `==`, `!=`
func GetConcatPromotedType ¶
func GetConcatPromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
func GetInRangePromotedType ¶
func GetInRangePromotedType(a, b DataColumnType) (DataColumnType, DataColumnType)
func NewArrayCastFunc ¶
func NewCastFunc ¶
func NewRawArrayCastFunc ¶
func NewRawCastFunc ¶
func RawCastToItself ¶
func ToNullableAny ¶
func ToNullableAny(v interface{}) (Nullable[interface{}], bool)
func ToNullableBlob ¶
func ToNullableBool ¶
func ToNullableComplex ¶
func ToNullableComplex[R Complex](v interface{}) (Nullable[R], bool)
func ToNullableFloat ¶
func ToNullableFloat[R Float](v interface{}) (Nullable[R], bool)
func ToNullableInt ¶
func ToNullableInt[R Int](v interface{}) (Nullable[R], bool)
func ToNullableString ¶
func ToNullableTime ¶
func ToNullableTimeRange ¶
func ToNullableTimeRange(v interface{}) (Nullable[TimeRange], bool)
func ToNullableUint ¶
func ToNullableUint[R Uint](v interface{}) (Nullable[R], bool)
func ToTimeRange ¶
func ToTimeRange(v interface{}) (TimeRange, bool)
func UnwrapNullable ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.