feat: 相关操作升级为泛型实现
This commit is contained in:
@ -50,3 +50,9 @@ type StructValueSliceResult[Value any] struct {
|
||||
Value []Value `json:"value"` // 转换结果
|
||||
Err error `json:"err"` // 错误信息
|
||||
}
|
||||
|
||||
// StringResult ...
|
||||
type StringResult struct {
|
||||
Value string `json:"value"`
|
||||
Err error `json:"err"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user