You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2019/07/27 20:49:06 UTC
[thrift] branch master updated: Add pointer helpers for missing
types
This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new bb311a7 Add pointer helpers for missing types
bb311a7 is described below
commit bb311a772e0a6fc142387abc3489a103662ea187
Author: Craig Wickesser <co...@gmail.com>
AuthorDate: Fri Jul 19 10:21:51 2019 -0400
Add pointer helpers for missing types
---
lib/go/thrift/pointerize.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/go/thrift/pointerize.go b/lib/go/thrift/pointerize.go
index 8d6b2c2..fb564ea 100644
--- a/lib/go/thrift/pointerize.go
+++ b/lib/go/thrift/pointerize.go
@@ -41,6 +41,8 @@ package thrift
func Float32Ptr(v float32) *float32 { return &v }
func Float64Ptr(v float64) *float64 { return &v }
func IntPtr(v int) *int { return &v }
+func Int8Ptr(v int8) *int8 { return &v }
+func Int16Ptr(v int16) *int16 { return &v }
func Int32Ptr(v int32) *int32 { return &v }
func Int64Ptr(v int64) *int64 { return &v }
func StringPtr(v string) *string { return &v }