ptr

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFloat32

func ToFloat32(val float32) *float32

ToFloat32 returns a pointer to a float32. This exists for convenience elsewhere since getting the address of a literal isn't possible.

func ToFloat64

func ToFloat64(val float64) *float64

ToFloat64 returns a pointer to a float64. This exists for convenience elsewhere since getting the address of a literal isn't possible.

func ToInt

func ToInt(val int) *int

ToInt returns a pointer to an int. This exists for convenience elsewhere since getting the address of a literal isn't possible.

func ToInt32

func ToInt32(val int32) *int32

ToInt32 returns a pointer to an int32. This exists for convenience elsewhere since getting the address of a literal isn't possible.

func ToInt64

func ToInt64(val int64) *int64

ToInt64 returns a pointer to an int64. This exists for convenience elsewhere since getting the address of a literal isn't possible.

func ToString

func ToString(val string) *string

ToString returns a pointer to a string. This exists for convenience elsewhere since getting the address of a literal isn't possible.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL