ptr

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: Apache-2.0 Imports: 0 Imported by: 81

README

ptr GoDoc

ptr contains functions for simplified creation of pointers from constants of basic types.

Installation

go get github.com/gotidy/ptr

Documentation

GoDoc

License

Apache 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool returns pointer to bool value

func Byte

func Byte(v byte) *byte

Byte returns pointer to byte value

func Complex128

func Complex128(v complex128) *complex128

Complex128 returns pointer to bool value

func Complex64

func Complex64(v complex64) *complex64

Complex64 returns pointer to bool value

func Float32

func Float32(v float32) *float32

Float32 returns pointer to bool value

func Float64

func Float64(v float64) *float64

Float64 returns pointer to bool value

func Int

func Int(v int) *int

Int returns pointer to int value

func Int16

func Int16(v int16) *int16

Int16 returns pointer to int16 value

func Int32

func Int32(v int32) *int32

Int32 returns pointer to int32 value

func Int64

func Int64(v int64) *int64

Int64 returns pointer to int64 value

func Int8

func Int8(v int8) *int8

Int8 returns pointer to int8 value

func Rune

func Rune(v rune) *rune

Byte returns pointer to byte value

func String

func String(v string) *string

String returns pointer to bool value

func UInt

func UInt(v uint) *uint

UInt returns pointer to uint value

func UInt16

func UInt16(v uint16) *uint16

UInt16 returns pointer to uint16 value

func UInt32

func UInt32(v uint32) *uint32

UInt32 returns pointer to uint32 value

func UInt64

func UInt64(v uint64) *uint64

UInt64 returns pointer to uint64 value

func UInt8

func UInt8(v uint8) *uint8

UInt8 returns pointer to 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