包装类型支持转为时间类型

This commit is contained in:
2023-09-04 20:35:42 +08:00
parent 2886126ae7
commit faafa8ee2a
3 changed files with 41 additions and 0 deletions

View File

@ -7,6 +7,8 @@
// Date : 2023-05-05 14:44
package wrapper
import "time"
const (
DataTypeUnknown = "unknown"
DataTypeNil = "nil"
@ -477,6 +479,16 @@ type Float64SliceResult struct {
Err error
}
// DurationResult 时间转换结果
//
// Author : zhangdeman001@ke.com<张德满>
//
// Date : 20:32 2023/9/4
type DurationResult struct {
Value time.Duration
Err error
}
// StringSliceResult ...
//
// Author : go_developer@163.com<白茶清欢>