From 203cc568fbec578f59ce15827c2d81b63aea1a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 17 May 2024 14:06:53 +0800 Subject: [PATCH] update data type --- data_type.go | 53 ++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/data_type.go b/data_type.go index 9dbd206..cc8bf86 100644 --- a/data_type.go +++ b/data_type.go @@ -8,32 +8,33 @@ package consts const ( - DataTypeInt = "int" // int类型 -> int64 - DataTypeUint = "uint" // uint类型 -> uint64 - DataTypeFloat = "float" // float类型 -> float64 - DataTypeBool = "bool" // bool类型 - DataTypeString = "string" // 字符串类型 - DataTypeSliceInt = "[]int" // int数组 -> []int64 - DataTypeSliceIntWithChar = "[]int_split" // int数组 -> []int64, 按照指定字符切割 - DataTypeSliceUint = "[]uint" // uint数组 -> []uint64 - DataTypeSliceUintWithChar = "[]uint_split" // uint数组 -> []uint64, 指定字符切割 - DataTypeSliceFloat = "[]float" // float数组 -> []float64 - DataTypeSliceFloatWithChar = "[]float_split" // float数组 -> []float64, 指定字符切割 - DataTypeSliceBool = "[]bool" // bool数组 -> []bool - DataTypeSliceBoolWithChar = "[]bool_split" // bool数组 -> []bool, 指定字符切割 - DataTypeSliceString = "[]string" // 字符串数组 -> []string - DataTypeSliceStringWithChar = "[]string_split" // 字符串数组 -> []string, 指定字符切割 - DataTypeSliceSlice = "[][]any" // 字符串数组 -> [][]any - DataTypeSliceMapAnyAny = "[]map[any]any" // 字符串数组 -> map[any]any, slice对象 - DataTypeSliceMapStringAny = "[]map[string]any" // 字符串数组 -> map[string]any, slice对象 - DataTypeMapStrInt = "map[string]int" // map -> map[string]int64 - DataTypeMapStrUint = "map[string]uint" // map -> map[string]uint64 - DataTypeMapStrFloat = "map[string]float" // map -> map[string]float64 - DataTypeMapStrBool = "map[string]bool" // map -> map[string]bool - DataTypeMapStrAny = "map[string]any" // map -> map[string]interface{} - DataTypeMapAnyAny = "map[any]any" // map -> map[interface{}]interface{} - DataTypeMapStrSlice = "map[string][]any" // map -> map[string][]interface{} - DataTypeAny = "any" // 任意类型 -> interface{} + DataTypeInt = "int" // int类型 -> int64 + DataTypeUint = "uint" // uint类型 -> uint64 + DataTypeFloat = "float" // float类型 -> float64 + DataTypeBool = "bool" // bool类型 + DataTypeString = "string" // 字符串类型 + DataTypeSliceInt = "[]int" // int数组 -> []int64 + DataTypeSliceIntWithChar = "[]int_split" // int数组 -> []int64, 按照指定字符切割 + DataTypeSliceUint = "[]uint" // uint数组 -> []uint64 + DataTypeSliceUintWithChar = "[]uint_split" // uint数组 -> []uint64, 指定字符切割 + DataTypeSliceFloat = "[]float" // float数组 -> []float64 + DataTypeSliceFloatWithChar = "[]float_split" // float数组 -> []float64, 指定字符切割 + DataTypeSliceBool = "[]bool" // bool数组 -> []bool + DataTypeSliceBoolWithChar = "[]bool_split" // bool数组 -> []bool, 指定字符切割 + DataTypeSliceString = "[]string" // 字符串数组 -> []string + DataTypeSliceStringWithChar = "[]string_split" // 字符串数组 -> []string, 指定字符切割 + DataTypeSliceSlice = "[][]any" // 字符串数组 -> [][]any + DataTypeSliceMapAnyAny = "[]map[any]any" // 字符串数组 -> map[any]any, slice对象 + DataTypeSliceMapStringAny = "[]map[string]any" // 字符串数组 -> map[string]any, slice对象 + DataTypeMapStrInt = "map[string]int" // map -> map[string]int64 + DataTypeMapStrUint = "map[string]uint" // map -> map[string]uint64 + DataTypeMapStrFloat = "map[string]float" // map -> map[string]float64 + DataTypeMapStrBool = "map[string]bool" // map -> map[string]bool + DataTypeMapStrAny = "map[string]any" // map -> map[string]interface{} + DataTypeMapStrStr = "map[string]string" // map -> map[string]string + DataTypeMapAnyAny = "map[any]any" // map -> map[interface{}]interface{} + DataTypeMapStrSlice = "map[string][]any" // map -> map[string][]interface{} + DataTypeAny = "any" // 任意类型 -> interface{} ) const (