pointers

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(x bool) *bool

Bool returns a pointer to bool value x.

func Byte

func Byte(x byte) *byte

Byte returns a pointer to byte value x.

func Bytes

func Bytes(x []byte) *[]byte

Bytes returns a pointer to []byte value x.

func Complex64

func Complex64(x complex64) *complex64

Complex64 returns a pointer to complex64 value x.

func Complex128

func Complex128(x complex128) *complex128

Complex128 returns a pointer to complex128 value x.

func Duration

func Duration(x time.Duration) *time.Duration

Duration returns a pointer to time.Duration value x.

func Error

func Error(x error) *error

Error returns a pointer to error value x.

func Float32

func Float32(x float32) *float32

Float32 returns a pointer to float32 value x.

func Float64

func Float64(x float64) *float64

Float64 returns a pointer to float64 value x.

func Int

func Int(x int) *int

Int returns a pointer to int value x.

func Int8

func Int8(x int8) *int8

Int8 returns a pointer to int8 value x.

func Int16

func Int16(x int16) *int16

Int16 returns a pointer to int16 value x.

func Int32

func Int32(x int32) *int32

Int32 returns a pointer to int32 value x.

func Int64

func Int64(x int64) *int64

Int64 returns a pointer to int64 value x.

func String

func String(x string) *string

String returns a pointer to string value x.

func Time

func Time(x time.Time) *time.Time

Time returns a pointer to type value x.

func Uint

func Uint(x uint) *uint

Uint returns a pointer to uint value x.

func Uint8

func Uint8(x uint8) *uint8

Uint8 returns a pointer to uint8 value x.

func Uint16

func Uint16(x uint16) *uint16

Uint16 returns a pointer to uint16 value x.

func Uint32

func Uint32(x uint32) *uint32

Uint32 returns a pointer to uint32 value x.

func Uint63

func Uint63(x uint64) *uint64

Uint63 returns a pointer to uint64 value x.

Types

This section is empty.

Jump to

Keyboard shortcuts

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