Documentation ¶
Index ¶
- Constants
- func GetBool(val any) (ret bool, err *cd.Result)
- func GetCurrentDateTime() (ret time.Time)
- func GetCurrentDateTimeStr() (ret string)
- func GetDateTimeDt(val any) (ret time.Time, err *cd.Result)
- func GetDateTimeStr(val any) (ret string, err *cd.Result)
- func GetFloat32(val any) (ret float32, err *cd.Result)
- func GetFloat64(val any) (ret float64, err *cd.Result)
- func GetInt(val any) (ret int, err *cd.Result)
- func GetInt16(val any) (ret int16, err *cd.Result)
- func GetInt32(val any) (ret int32, err *cd.Result)
- func GetInt64(val any) (ret int64, err *cd.Result)
- func GetInt8(val any) (ret int8, err *cd.Result)
- func GetNewSnowFlakeID() (ret int64)
- func GetNewUUID() (ret string)
- func GetString(val any) (ret string, err *cd.Result)
- func GetTypeEnum(val reflect.Type) (ret model.TypeDeclare, err *cd.Result)
- func GetUint(val any) (ret uint, err *cd.Result)
- func GetUint16(val any) (ret uint16, err *cd.Result)
- func GetUint32(val any) (ret uint32, err *cd.Result)
- func GetUint64(val any) (ret uint64, err *cd.Result)
- func GetUint8(val any) (ret uint8, 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 IsSameVal(firstVal, secondVal reflect.Value) (ret bool, err *cd.Result)
- 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)
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 GetTypeEnum ¶
func IsDateTime ¶
func IsUInteger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.