ptr

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ptr contains utility functions for converting values to pointer values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to a bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to a byte value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to a float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to a float64 value.

func Int

func Int(i int) *int

Int returns a pointer to an int value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to an int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to an int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to an int64 value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to an int8 value.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to a rune value.

func String

func String(s string) *string

String returns a pointer to a string value.

func Time

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

Time returns a pointer to a time.Time value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to a uint value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to a uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to a uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to a uint64 value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to a 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