Skip to content

Commit 37a2a7a

Browse files
committed
add ExpandUint64Ptr
1 parent f42b849 commit 37a2a7a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/types/number.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,11 @@ func ExpandUint32Ptr(data interface{}) *uint32 {
3333

3434
return scw.Uint32Ptr(uint32(data.(int)))
3535
}
36+
37+
func ExpandUint64Ptr(data interface{}) *uint64 {
38+
if data == nil || data == "" {
39+
return nil
40+
}
41+
42+
return scw.Uint64Ptr(uint64(data.(int)))
43+
}

0 commit comments

Comments
 (0)