consts/data_type.go

43 lines
2.2 KiB
Go
Raw Normal View History

2024-04-08 16:35:10 +08:00
// Package consts ...
//
// Description : consts ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2024-04-08 16:33
package consts
const (
2024-04-29 16:26:41 +08:00
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, 指定字符切割
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{}
2024-04-08 16:35:10 +08:00
)
2024-04-29 13:57:35 +08:00
const (
2024-04-29 16:02:51 +08:00
DataStatusNotFound = "NOT_FOUND"
DataStatusIsNil = "IS_NIL"
DataStatusIsZero = "IS_ZERO"
DataStatusIsEmpty = "IS_EMPTY"
DataStatusIsFalse = "IS_FALSE"
2024-04-29 13:57:35 +08:00
)