ptr

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to a bool value.

func Duration

func Duration(d time.Duration) *time.Duration

Duration returns a pointer to a Duration value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to a float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to a float64 value.

func Int

func Int(i int) *int

Int returns a pointer to an int value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to an int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to an int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to an int64 value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to an int8 value.

func String

func String(s string) *string

String returns a pointer to a string value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to an uint value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to an uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to an uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to an uint64 value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to an uint8 value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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