Documentation ¶
Index ¶
- Constants
- func GetBool(val any) (ret model.RawVal, err *cd.Result)
- func GetCurrentDateTime() (ret time.Time)
- func GetCurrentDateTimeStr() (ret string)
- func GetDateTime(val any) (ret model.RawVal, err *cd.Result)
- func GetFloat32(val any) (ret model.RawVal, err *cd.Result)
- func GetFloat64(val any) (ret model.RawVal, err *cd.Result)
- func GetInt(val any) (ret model.RawVal, err *cd.Result)
- func GetInt16(val any) (ret model.RawVal, err *cd.Result)
- func GetInt32(val any) (ret model.RawVal, err *cd.Result)
- func GetInt64(val any) (ret model.RawVal, err *cd.Result)
- func GetInt8(val any) (ret model.RawVal, err *cd.Result)
- func GetNewSnowFlakeID() (ret int64)
- func GetNewUUID() (ret string)
- func GetRawBool(rVal reflect.Value) (ret bool, err *cd.Result)
- func GetRawDateTime(rVal reflect.Value) (ret time.Time, err *cd.Result)
- func GetRawFloat32(rVal reflect.Value) (ret float32, err *cd.Result)
- func GetRawFloat64(rVal reflect.Value) (ret float64, err *cd.Result)
- func GetRawInt(rVal reflect.Value) (ret int, err *cd.Result)
- func GetRawInt16(rVal reflect.Value) (ret int16, err *cd.Result)
- func GetRawInt32(rVal reflect.Value) (ret int32, err *cd.Result)
- func GetRawInt64(rVal reflect.Value) (ret int64, err *cd.Result)
- func GetRawInt8(rVal reflect.Value) (ret int8, err *cd.Result)
- func GetRawString(rVal reflect.Value) (ret string, err *cd.Result)
- func GetRawUint(rVal reflect.Value) (ret uint, err *cd.Result)
- func GetRawUint16(rVal reflect.Value) (ret uint16, err *cd.Result)
- func GetRawUint32(rVal reflect.Value) (ret uint32, err *cd.Result)
- func GetRawUint64(rVal reflect.Value) (ret uint64, err *cd.Result)
- func GetRawUint8(rVal reflect.Value) (ret uint8, err *cd.Result)
- func GetString(val any) (ret model.RawVal, err *cd.Result)
- func GetTypeEnum(val reflect.Type) (ret model.TypeDeclare, err *cd.Result)
- func GetUint(val any) (ret model.RawVal, err *cd.Result)
- func GetUint16(val any) (ret model.RawVal, err *cd.Result)
- func GetUint32(val any) (ret model.RawVal, err *cd.Result)
- func GetUint64(val any) (ret model.RawVal, err *cd.Result)
- func GetUint8(val any) (ret model.RawVal, err *cd.Result)
- func IsBool(tType reflect.Type) bool
- func IsDateTime(tType reflect.Type) bool
- func IsFloat(tType reflect.Type) bool
- func IsInteger(tType reflect.Type) bool
- func IsMap(tType reflect.Type) bool
- func IsNil(val reflect.Value) (ret bool)
- func IsNumber(tType reflect.Type) bool
- func IsPtr(tType reflect.Type) bool
- func IsSameValue(firstVal, secondVal any) (ret bool)
- func IsSlice(tType reflect.Type) bool
- func IsString(tType reflect.Type) bool
- func IsStruct(tType reflect.Type) bool
- func IsUInteger(tType reflect.Type) bool
- func IsZero(val reflect.Value) (ret bool)
- type Codec
- type ElemDependValueFunc
Constants ¶
View Source
const ( Key = "key" Auto = "auto" UUID = "uuid" SnowFlake = "snowflake" DateTime = "dateTime" )
Variables ¶
This section is empty.
Functions ¶
func GetCurrentDateTime ¶
func GetCurrentDateTimeStr ¶
func GetCurrentDateTimeStr() (ret string)
func GetNewSnowFlakeID ¶
func GetNewSnowFlakeID() (ret int64)
func GetNewUUID ¶
func GetNewUUID() (ret string)
func GetRawDateTime ¶ added in v1.3.147
func GetRawFloat32 ¶ added in v1.3.147
func GetRawFloat64 ¶ added in v1.3.147
func GetRawInt16 ¶ added in v1.3.147
func GetRawInt32 ¶ added in v1.3.147
func GetRawInt64 ¶ added in v1.3.147
func GetRawString ¶ added in v1.3.147
func GetRawUint16 ¶ added in v1.3.147
func GetRawUint32 ¶ added in v1.3.147
func GetRawUint64 ¶ added in v1.3.147
func GetRawUint8 ¶ added in v1.3.147
func GetTypeEnum ¶
func IsDateTime ¶
func IsSameValue ¶ added in v1.3.131
func IsUInteger ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.