thriftrw: go.uber.org/thriftrw/ptr Index | Files

package ptr

import "go.uber.org/thriftrw/ptr"

Package ptr provides helpers to convert basic types to pointers.

Index

Package Files

ptr.go

func Bool Uses

func Bool(x bool) *bool

Bool converts a bool to a pointer

func Float64 Uses

func Float64(x float64) *float64

Float64 converts a float64 to a pointer

func Int16 Uses

func Int16(x int16) *int16

Int16 converts an int32 to a pointer

func Int32 Uses

func Int32(x int32) *int32

Int32 converts an int32 to a pointer

func Int64 Uses

func Int64(x int64) *int64

Int64 converts an int64 to a pointer

func Int8 Uses

func Int8(x int8) *int8

Int8 converts an int8 to a pointer

func String Uses

func String(x string) *string

String converts a string to a pointer

Package ptr is imported by 34 packages. Updated 2020-04-12. Refresh now. Tools for package owners.