406 lines
6.5 KiB
Go
406 lines
6.5 KiB
Go
// Package wrapper ...
|
|
//
|
|
// Description : wrapper ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 2023-05-05 14:44
|
|
package wrapper
|
|
|
|
const (
|
|
DataTypeAny = "interface"
|
|
|
|
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"
|
|
DataTypeFloat = "float"
|
|
|
|
DataTypeIntSlice = "[]int"
|
|
DataTypeUntSlice = "[]uint"
|
|
DataTypeNumberSlice = "[]number"
|
|
DataTypeFloatSlice = "[]float"
|
|
DataTypeBoolSlice = "[]bool"
|
|
DataTypeAnySlice = "[]interface"
|
|
|
|
DataTypeObject = "map[string]interface"
|
|
DataTypeAnyObject = "map[interface]interface"
|
|
)
|
|
|
|
// Int8Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:25 2023/5/8
|
|
type Int8Result struct {
|
|
Value int8
|
|
Err error
|
|
}
|
|
|
|
// Int8PtrResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:05 2023/5/15
|
|
type Int8PtrResult struct {
|
|
Value *int8
|
|
Err error
|
|
}
|
|
|
|
// Int16Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:26 2023/5/8
|
|
type Int16Result struct {
|
|
Value int16
|
|
Err error
|
|
}
|
|
|
|
// Int16PtrResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:05 2023/5/15
|
|
type Int16PtrResult struct {
|
|
Value *int16
|
|
Err error
|
|
}
|
|
|
|
// Int32Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:26 2023/5/8
|
|
type Int32Result struct {
|
|
Value int32
|
|
Err error
|
|
}
|
|
|
|
// Int32PtrResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:04 2023/5/15
|
|
type Int32PtrResult struct {
|
|
Value *int32
|
|
Err error
|
|
}
|
|
|
|
// Int64Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:26 2023/5/8
|
|
type Int64Result struct {
|
|
Value int64
|
|
Err error
|
|
}
|
|
|
|
// Int64PtrResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:04 2023/5/15
|
|
type Int64PtrResult struct {
|
|
Value *int64
|
|
Err error
|
|
}
|
|
|
|
// IntResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:26 2023/5/8
|
|
type IntResult struct {
|
|
Value int
|
|
Err error
|
|
}
|
|
|
|
// IntPtrResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:51 2023/5/15
|
|
type IntPtrResult struct {
|
|
Value *int
|
|
Err error
|
|
}
|
|
|
|
// Uint8Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:28 2023/5/8
|
|
type Uint8Result struct {
|
|
Value uint8
|
|
Err error
|
|
}
|
|
|
|
// Uint16Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:28 2023/5/8
|
|
type Uint16Result struct {
|
|
Value uint16
|
|
Err error
|
|
}
|
|
|
|
// Uint32Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:28 2023/5/8
|
|
type Uint32Result struct {
|
|
Value uint32
|
|
Err error
|
|
}
|
|
|
|
// Uint64Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:28 2023/5/8
|
|
type Uint64Result struct {
|
|
Value uint64
|
|
Err error
|
|
}
|
|
|
|
// UintResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:29 2023/5/8
|
|
type UintResult struct {
|
|
Value uint
|
|
Err error
|
|
}
|
|
|
|
// Float32Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:31 2023/5/8
|
|
type Float32Result struct {
|
|
Value float32
|
|
Err error
|
|
}
|
|
|
|
// Float64Result ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:32 2023/5/8
|
|
type Float64Result struct {
|
|
Value float64
|
|
Err error
|
|
}
|
|
|
|
// Any ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:40 2023/5/8
|
|
type Any struct {
|
|
Value interface{}
|
|
Err error
|
|
}
|
|
|
|
// BoolResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:36 2023/5/8
|
|
type BoolResult struct {
|
|
Value bool
|
|
Err error
|
|
}
|
|
|
|
// ObjectResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:38 2023/5/8
|
|
type ObjectResult struct {
|
|
Value map[string]interface{}
|
|
Err error
|
|
}
|
|
|
|
// StringResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 16:57 2023/5/8
|
|
type StringResult struct {
|
|
Value string
|
|
Err error
|
|
}
|
|
|
|
// StringPtrResult 字符串指针
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:02 2023/5/15
|
|
type StringPtrResult struct {
|
|
Value *string
|
|
Err error
|
|
}
|
|
|
|
// Int8SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:49 2023/5/8
|
|
type Int8SliceResult struct {
|
|
Value []int8
|
|
Err error
|
|
}
|
|
|
|
// Int16SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:49 2023/5/8
|
|
type Int16SliceResult struct {
|
|
Value []int16
|
|
Err error
|
|
}
|
|
|
|
// Int32SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:50 2023/5/8
|
|
type Int32SliceResult struct {
|
|
Value []int32
|
|
Err error
|
|
}
|
|
|
|
// Int64SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:50 2023/5/8
|
|
type Int64SliceResult struct {
|
|
Value []int64
|
|
Err error
|
|
}
|
|
|
|
// IntSliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:50 2023/5/8
|
|
type IntSliceResult struct {
|
|
Value []int
|
|
Err error
|
|
}
|
|
|
|
// Uint8SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:55 2023/5/8
|
|
type Uint8SliceResult struct {
|
|
Value []uint8
|
|
Err error
|
|
}
|
|
|
|
// Uint16SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:55 2023/5/8
|
|
type Uint16SliceResult struct {
|
|
Value []uint16
|
|
Err error
|
|
}
|
|
|
|
// Uint32SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:55 2023/5/8
|
|
type Uint32SliceResult struct {
|
|
Value []uint32
|
|
Err error
|
|
}
|
|
|
|
// Uint64SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:55 2023/5/8
|
|
type Uint64SliceResult struct {
|
|
Value []uint64
|
|
Err error
|
|
}
|
|
|
|
// UintSliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 17:56 2023/5/8
|
|
type UintSliceResult struct {
|
|
Value []uint
|
|
Err error
|
|
}
|
|
|
|
// BoolSliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:22 2023/5/8
|
|
type BoolSliceResult struct {
|
|
Value []bool
|
|
Err error
|
|
}
|
|
|
|
// Float32SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:24 2023/5/8
|
|
type Float32SliceResult struct {
|
|
Value []float32
|
|
Err error
|
|
}
|
|
|
|
// Float64SliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:24 2023/5/8
|
|
type Float64SliceResult struct {
|
|
Value []float64
|
|
Err error
|
|
}
|
|
|
|
// AnySliceResult ...
|
|
//
|
|
// Author : go_developer@163.com<白茶清欢>
|
|
//
|
|
// Date : 18:28 2023/5/8
|
|
type AnySliceResult struct {
|
|
Value []interface{}
|
|
Err error
|
|
}
|