pointer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToBool

func ToBool(b bool) *bool

ToBool returns a pointer to the passed bool value.

func ToByte

func ToByte(b byte) *byte

ToByte returns a pointer to the passed byte value.

func ToComplex128

func ToComplex128(c complex128) *complex128

ToComplex128 returns a pointer to the passed complex128 value.

func ToComplex64

func ToComplex64(c complex64) *complex64

ToComplex64 returns a pointer to the passed complex64 value.

func ToDuration

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

ToDuration returns a pointer to the passed time.Duration value.

func ToError

func ToError(e error) *error

ToError returns a pointer to the passed error value.

func ToFloat32

func ToFloat32(f float32) *float32

ToFloat32 returns a pointer to the passed float32 value.

func ToFloat64

func ToFloat64(f float64) *float64

ToFloat64 returns a pointer to the passed float64 value.

func ToInt

func ToInt(i int) *int

ToInt returns a pointer to the passed int value.

func ToInt16

func ToInt16(i int16) *int16

ToInt16 returns a pointer to the passed int16 value.

func ToInt32

func ToInt32(i int32) *int32

ToInt32 returns a pointer to the passed int32 value.

func ToInt64

func ToInt64(i int64) *int64

ToInt64 returns a pointer to the passed int64 value.

func ToInt8

func ToInt8(i int8) *int8

ToInt8 returns a pointer to the passed int8 value.

func ToRune

func ToRune(r rune) *rune

ToRune returns a pointer to the passed rune value.

func ToString

func ToString(s string) *string

ToString returns a pointer to the passed string value.

func ToTime

func ToTime(t time.Time) *time.Time

ToTime returns a pointer to the passed time.Time value.

func ToUint

func ToUint(u uint) *uint

ToUint returns a pointer to the passed uint value.

func ToUint16

func ToUint16(u uint16) *uint16

ToUint16 returns a pointer to the passed uint16 value.

func ToUint32

func ToUint32(u uint32) *uint32

ToUint32 returns a pointer to the passed uint32 value.

func ToUint64

func ToUint64(u uint64) *uint64

ToUint64 returns a pointer to the passed uint64 value.

func ToUint8

func ToUint8(u uint8) *uint8

ToUint8 returns a pointer to the passed uint8 value.

func ToUintptr

func ToUintptr(u uintptr) *uintptr

ToUintptr returns a pointer to the passed uintptr value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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