feat: 增加map类型转换
This commit is contained in:
@ -20,3 +20,9 @@ type BaseValuePtrResult[BaseType op_type.BaseType] struct {
|
||||
Value *BaseType `json:"result"` // 转换结果
|
||||
Err error `json:"err"` // 错误信息
|
||||
}
|
||||
|
||||
// MapValueResult map类型转换结果
|
||||
type MapValueResult[Key comparable, Value comparable] struct {
|
||||
Value map[Key]Value `json:"result"` // 转换结果
|
||||
Err error `json:"err"` // 错误信息
|
||||
}
|
||||
|
Reference in New Issue
Block a user