// Package wrapper ... // // Description : wrapper ... // // Author : go_developer@163.com<白茶清欢> // // Date : 2023-05-05 14:44 package wrapper import ( "time" "git.zhangdeman.cn/zhangdeman/op_type" ) // BaseTypeValueResult 基础类型结果 type BaseTypeValueResult[BaseType op_type.BaseType] struct { Value BaseType `json:"value"` Err error `json:"err"` } // Int8Result ... type Int8Result struct { Value int8 `json:"value"` Err error `json:"err"` } // Int8PtrResult ... type Int8PtrResult struct { Value *int8 `json:"value"` Err error `json:"err"` } // Int16Result ... type Int16Result struct { Value int16 `json:"value"` Err error `json:"err"` } // Int16PtrResult ... type Int16PtrResult struct { Value *int16 `json:"value"` Err error `json:"err"` } // Int32Result ... type Int32Result struct { Value int32 `json:"value"` Err error `json:"err"` } // Int32PtrResult ... type Int32PtrResult struct { Value *int32 `json:"value"` Err error `json:"err"` } // Int64Result ... type Int64Result struct { Value int64 `json:"value"` Err error `json:"err"` } // Int64PtrResult ... type Int64PtrResult struct { Value *int64 `json:"value"` Err error `json:"err"` } // IntResult ... type IntResult struct { Value int `json:"value"` Err error `json:"err"` } // IntPtrResult ... type IntPtrResult struct { Value *int `json:"value"` Err error `json:"err"` } // Uint8Result ... type Uint8Result struct { Value uint8 `json:"value"` Err error `json:"err"` } // Uint8PtrResult ... type Uint8PtrResult struct { Value *uint8 `json:"value"` Err error `json:"err"` } // Uint16Result ... type Uint16Result struct { Value uint16 `json:"value"` Err error `json:"err"` } // Uint16PtrResult ... type Uint16PtrResult struct { Value *uint16 `json:"value"` Err error `json:"err"` } // Uint32Result ... type Uint32Result struct { Value uint32 `json:"value"` Err error `json:"err"` } // Uint32PtrResult ... type Uint32PtrResult struct { Value *uint32 `json:"value"` Err error `json:"err"` } // Uint64Result ... type Uint64Result struct { Value uint64 `json:"value"` Err error `json:"err"` } // Uint64PtrResult ... type Uint64PtrResult struct { Value *uint64 `json:"value"` Err error `json:"err"` } // UintResult ... type UintResult struct { Value uint `json:"value"` Err error `json:"err"` } // UintPtrResult ... type UintPtrResult struct { Value *uint `json:"value"` Err error `json:"err"` } // Float32Result ... type Float32Result struct { Value float32 `json:"value"` Err error `json:"err"` } // Float32PtrResult ... type Float32PtrResult struct { Value *float32 `json:"value"` Err error `json:"err"` } // Float64Result ... type Float64Result struct { Value float64 `json:"value"` Err error `json:"err"` } // Float64PtrResult ... type Float64PtrResult struct { Value *float64 `json:"value"` Err error `json:"err"` } // Any ... type Any struct { Value any `json:"value"` Err error `json:"err"` } // BoolResult ... type BoolResult struct { Value bool `json:"value"` Err error `json:"err"` } // BoolPtrResult ... type BoolPtrResult struct { Value *bool `json:"value"` Err error `json:"err"` } // ObjectResult ... type ObjectResult struct { Value map[string]any `json:"value"` Err error `json:"err"` } // StringResult ... type StringResult struct { Value string `json:"value"` Err error `json:"err"` } // StringPtrResult 字符串指针 type StringPtrResult struct { Value *string `json:"value"` Err error `json:"err"` } // Int8SliceResult ... type Int8SliceResult struct { Value []int8 `json:"value"` Err error `json:"err"` } // Int16SliceResult ... type Int16SliceResult struct { Value []int16 `json:"value"` Err error `json:"err"` } // Int32SliceResult ... type Int32SliceResult struct { Value []int32 `json:"value"` Err error `json:"err"` } // Int64SliceResult ... type Int64SliceResult struct { Value []int64 `json:"value"` Err error `json:"err"` } // IntSliceResult ... type IntSliceResult struct { Value []int `json:"value"` Err error `json:"err"` } // Uint8SliceResult ... type Uint8SliceResult struct { Value []uint8 `json:"value"` Err error `json:"err"` } // Uint16SliceResult ... type Uint16SliceResult struct { Value []uint16 `json:"value"` Err error `json:"err"` } // Uint32SliceResult ... type Uint32SliceResult struct { Value []uint32 `json:"value"` Err error `json:"err"` } // Uint64SliceResult ... type Uint64SliceResult struct { Value []uint64 `json:"value"` Err error `json:"err"` } // UintSliceResult ... type UintSliceResult struct { Value []uint `json:"value"` Err error `json:"err"` } // BoolSliceResult ... type BoolSliceResult struct { Value []bool `json:"value"` Err error `json:"err"` } // Float32SliceResult ... type Float32SliceResult struct { Value []float32 `json:"value"` Err error `json:"err"` } // Float64SliceResult ... type Float64SliceResult struct { Value []float64 `json:"value"` Err error `json:"err"` } // DurationResult 时间转换结果 type DurationResult struct { Value time.Duration `json:"value"` Err error `json:"err"` } // StringSliceResult ... type StringSliceResult struct { Value []string `json:"value"` Err error `json:"err"` } // MapResult 转map的结果 type MapResult struct { Value any `json:"value"` Err error `json:"err"` } // AnySliceResult ... type AnySliceResult struct { Value []any `json:"value"` Err error `json:"err"` }