优化数据类型获取

This commit is contained in:
2023-10-11 15:16:00 +08:00
parent 8b1a515cb9
commit 160f464d15
2 changed files with 37 additions and 46 deletions

View File

@ -12,41 +12,14 @@ import "time"
const (
DataTypeUnknown = "unknown"
DataTypeNil = "nil"
DataTypeAny = "interface"
DataTypePtr = "ptr"
DataTypeString = "string"
DataTypeInt8 = "int8"
DataTypeInt16 = "int16"
DataTypeInt32 = "int32"
DataTypeInt64 = "int64"
DataTypeInt = "int"
DataTypeUint8 = "uint8"
DataTypeUint16 = "uint16"
DataTypeUint32 = "uint32"
DataTypeUint64 = "uint64"
DataTypeUint = "uint"
DataTypeBool = "bool"
DataTypeNumber = "number"
DataTypeFloat32 = "float32"
DataTypeFloat64 = "float64"
DataTypeDouble = "double"
DataTypeString = "string"
DataTypeInt = "int"
DataTypeUint = "uint"
DataTypeBool = "bool"
DataTypeFloat = "float"
DataTypeIntSlice = "[]int"
DataTypeUntSlice = "[]uint"
DataTypeNumberSlice = "[]number"
DataTypeFloatSlice = "[]float"
DataTypeBoolSlice = "[]bool"
DataTypeAnySlice = "[]interface"
DataTypeObject = "map[string]interface"
DataTypeAnyObject = "map[interface]interface"
DataTypeSlice = "slice"
DataTypeObject = "object"
)
// Int8Result ...