ptr

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool returns a point to bool

func CastBool added in v0.1.1

func CastBool(v interface{}) *bool

CastBool returns a pointer to bool or nil when v is not bool

func CastFloat32 added in v0.1.1

func CastFloat32(v interface{}) *float32

CastFloat32 returns a pointer to float32 or nil when v is not float32

func CastFloat64 added in v0.1.1

func CastFloat64(v interface{}) *float64

CastFloat64 returns a pointer to float64 or nil when v is not float64

func CastInt added in v0.1.1

func CastInt(v interface{}) *int

CastInt returns a pointer to int or nil when v is not int

func CastInt16 added in v0.1.1

func CastInt16(v interface{}) *int16

CastInt16 returns a pointer to int16 or nil when v is not int16

func CastInt32 added in v0.1.1

func CastInt32(v interface{}) *int32

CastInt32 returns a pointer to int32 or nil when v is not int32

func CastInt64 added in v0.1.1

func CastInt64(v interface{}) *int64

CastInt64 returns a pointer to int64 or nil when v is not int64

func CastInt8 added in v0.1.1

func CastInt8(v interface{}) *int8

CastInt8 returns a pointer to int8 or nil when v is not int8

func CastString added in v0.1.1

func CastString(v interface{}) *string

CastString returns a pointer to string or nil when v is not string

func CastUint added in v0.1.1

func CastUint(v interface{}) *uint

CastUint returns a pointer to uint or nil when v is not uint

func CastUint16 added in v0.1.1

func CastUint16(v interface{}) *uint16

CastUint16 returns a pointer to uint16 or nil when v is not uint16

func CastUint32 added in v0.1.1

func CastUint32(v interface{}) *uint32

CastUint32 returns a pointer to uint32 or nil when v is not uint32

func CastUint64 added in v0.1.1

func CastUint64(v interface{}) *uint64

CastUint64 returns a pointer to uint64 or nil when v is not uint64

func CastUint8 added in v0.1.1

func CastUint8(v interface{}) *uint8

CastUint8 returns a pointer to uint8 or nil when v is not uint8

func Float32

func Float32(v float32) *float32

Float32 returns a pointer to float32

func Float64

func Float64(v float64) *float64

Float64 returns a pointer to float64

func Int

func Int(v int) *int

Int returns a pointer to int

func Int16

func Int16(v int16) *int16

Int16 returns a pointer to int16

func Int32

func Int32(v int32) *int32

Int32 returns a pointer to int32

func Int64

func Int64(v int64) *int64

Int64 returns a pointer to int64

func Int8

func Int8(v int8) *int8

Int8 returns a pointer to int8

func String

func String(v string) *string

String returns a pointer to string

func Uint

func Uint(v uint) *uint

Uint returns a pointer to uint

func Uint16

func Uint16(v uint16) *uint16

Uint16 returns a pointer to uint16

func Uint32

func Uint32(v uint32) *uint32

Uint32 returns a pointer to uint32

func Uint64

func Uint64(v uint64) *uint64

Uint64 returns a pointer to uint64

func Uint8

func Uint8(v uint8) *uint8

Uint8 returns a pointer to uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

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