Permalink
Browse files

OCD: Ptr helpers: type name comes first

  • Loading branch information...
mxmCherry committed Oct 19, 2017
1 parent c5f528a commit 53a357476a774def318ed6c4d8d4105787d3bd90
Showing with 4 additions and 4 deletions.
  1. +4 −4 ptr.go
8 ptr.go
@@ -1,11 +1,11 @@
package openrtb
// PtrInt8 returns pointer to passed argument.
func PtrInt8(n int8) *int8 {
// Int8Ptr returns pointer to passed argument.
func Int8Ptr(n int8) *int8 {
return &n
}
// PtrUint64 returns pointer to passed argument.
func PtrUint64(n uint64) *uint64 {
// Uint64Ptr returns pointer to passed argument.
func Uint64Ptr(n uint64) *uint64 {
return &n
}

0 comments on commit 53a3574

Please sign in to comment.