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