数据类型支持基础的指针类型
This commit is contained in:
parent
c3417b35fe
commit
e1e2a2e421
12
data_type.go
12
data_type.go
@ -56,6 +56,11 @@ const (
|
||||
DataTypeMapStrSlice = "map[string][]any" // map -> map[string][]any
|
||||
DataTypeMapStrSliceWithMarshal = "map[string][]any_marshal" // map -> map[string][]any, json 序列化之后的结果
|
||||
DataTypeAny = "any" // 任意类型 -> any
|
||||
DataTypeStringPtr = "string_ptr" // *string, 字符串指针
|
||||
DataTypeIntPtr = "int_ptr" // *int64, int64指针
|
||||
DataTypeUintPtr = "uint_ptr" // *uint64, uint64指针
|
||||
DataTypeFloatPtr = "float_ptr" // *float64, float64指针
|
||||
DataTypeBoolPtr = "bool_ptr" // *bool, 字符串指针
|
||||
)
|
||||
|
||||
const (
|
||||
@ -139,6 +144,13 @@ var (
|
||||
getDataTypeDesc(DataTypeSliceMapStringAnyWithMarshal, "[][]map[string]any json序列化之后的结果"),
|
||||
getDataTypeDesc(DataTypeSliceMapAnyAny, "[]map[any]any"),
|
||||
getDataTypeDesc(DataTypeSliceMapAnyAnyWithMarshal, "[]map[any]any json序列化之后的结果"),
|
||||
|
||||
// 基础类型的指针类型
|
||||
getDataTypeDesc(DataTypeStringPtr, "*string, 字符串指针"),
|
||||
getDataTypeDesc(DataTypeUintPtr, "*int64, int64指针"),
|
||||
getDataTypeDesc(DataTypeIntPtr, "*int64, *uint64, uint64指针"),
|
||||
getDataTypeDesc(DataTypeFloatPtr, "*float64, float64指针"),
|
||||
getDataTypeDesc(DataTypeBoolPtr, "*bool, 字符串指针"),
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user