Skip to content

Commit

Permalink
adding ptr.Int16
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloGrayson committed Jun 1, 2016
1 parent 8afd99f commit 65ba758
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ptr/ptr.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ func Int8(x int8) *int8 {
return &x
}

// Int16 converts an int32 to a pointer
func Int16(x int16) *int16 {
return &x
}

// Int32 converts an int32 to a pointer
func Int32(x int32) *int32 {
return &x
Expand Down

0 comments on commit 65ba758

Please sign in to comment.