Skip to content

Commit

Permalink
Update pointers.go
Browse files Browse the repository at this point in the history
Add Int64Ptr
  • Loading branch information
cthulhu committed Mar 1, 2019
1 parent f8ad89e commit 0990391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pointers/pointers.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ func Float64Ptr(f float64) *float64 {
func IntPtr(i int) *int {
return &i
}

func Int64Ptr(i int64) *int64 {
return &i
}
// TODO: Add test
func IsBlank(pStr *string) bool {
return pStr == nil || *pStr == ""
Expand Down

0 comments on commit 0990391

Please sign in to comment.