pointers

package module
v0.0.0-...-a03dc99 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 0 Imported by: 1

README

pointers

Factory methods to provide pointers to primitives.

Documentation

Overview

Package pointers provides factories for creating pointers to primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(x bool) *bool

Bool returns a pointer to a bool primitive.

func Byte

func Byte(x byte) *byte

Byte returns a pointer to a byte primitive.

func Float32

func Float32(x float32) *float32

Float32 returns a pointer to a float32 primitive.

func Float64

func Float64(x float64) *float64

Float64 returns a pointer to a float64 primitive.

func Int

func Int(x int) *int

Int returns a pointer to an int primitive.

func Int8

func Int8(x int8) *int8

Int8 returns a pointer to an int8 primitive.

func Int32

func Int32(x int32) *int32

Int32 returns a pointer to an int32 primitive.

func Int64

func Int64(x int64) *int64

Int64 returns a pointer to an int64 primitive.

func Rune

func Rune(x rune) *rune

Rune returns a pointer to a rune primitive.

func String

func String(x string) *string

String returns a pointer to a string primitive.

func UInt

func UInt(x uint) *uint

UInt returns a pointer to an uint primitive.

func UInt16

func UInt16(x uint16) *uint16

UInt16 returns a pointer to an uint16 primitive.

func UInt32

func UInt32(x uint32) *uint32

UInt32 returns a pointer to an uint32 primitive.

func UInt64

func UInt64(x uint64) *uint64

UInt64 returns a pointer to an uint64 primitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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