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