Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
native response: add Int64Ptr
Browse files Browse the repository at this point in the history
First non-struct pointer appeared (Asset.ID), nice to have a helper in the same pkg
  • Loading branch information
mxmCherry committed Apr 12, 2021
1 parent 0dc23e6 commit e39b77c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions native1/response/ptr.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package response

// Int64Ptr returns pointer to passed argument.
func Int64Ptr(n int64) *int64 {
return &n
}

0 comments on commit e39b77c

Please sign in to comment.