Skip to content

Commit

Permalink
added Int32ToPtr helper function (#11985)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutrollized committed Feb 2, 2022
1 parent 09e68d1 commit 5a32783
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helper/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ func Int8ToPtr(i int8) *int8 {
return &i
}

// Int64ToPtr returns the pointer to an int
// Int32ToPtr returns the pointer to an int32
func Int32ToPtr(i int32) *int32 {
return &i
}

// Int64ToPtr returns the pointer to an int64
func Int64ToPtr(i int64) *int64 {
return &i
}
Expand Down

0 comments on commit 5a32783

Please sign in to comment.