Skip to content

Commit 5a32783

Browse files
authored
added Int32ToPtr helper function (#11985)
1 parent 09e68d1 commit 5a32783

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

helper/funcs.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ func Int8ToPtr(i int8) *int8 {
8383
return &i
8484
}
8585

86-
// Int64ToPtr returns the pointer to an int
86+
// Int32ToPtr returns the pointer to an int32
87+
func Int32ToPtr(i int32) *int32 {
88+
return &i
89+
}
90+
91+
// Int64ToPtr returns the pointer to an int64
8792
func Int64ToPtr(i int64) *int64 {
8893
return &i
8994
}

0 commit comments

Comments
 (0)