ptr

package
v0.0.6-rc.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 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 provided value

func Byte

func Byte(v byte) *byte

Byte returns pointer to provided value

func Complex128

func Complex128(v complex128) *complex128

Complex128 returns pointer to provided value

func Complex64

func Complex64(v complex64) *complex64

Complex64 returns pointer to provided value

func Duration

func Duration(v time.Duration) *time.Duration

Duration returns pointer to provided value

func Float32

func Float32(v float32) *float32

Float32 returns pointer to provided value

func Float64

func Float64(v float64) *float64

Float64 returns pointer to provided value

func From

func From[T any](v *T) T

From returns value from pointer

func Int

func Int(v int) *int

Int returns pointer to provided value

func Int16

func Int16(v int16) *int16

Int16 returns pointer to provided value

func Int32

func Int32(v int32) *int32

Int32 returns pointer to provided value

func Int64

func Int64(v int64) *int64

Int64 returns pointer to provided value

func Int8

func Int8(v int8) *int8

Int8 returns pointer to provided value

func Rune

func Rune(v rune) *rune

Rune returns pointer to provided value

func String

func String(v string) *string

String returns pointer to provided value

func T

func T[T any](v T) *T

T returns pointer to provided value

func Time

func Time(v time.Time) *time.Time

Time returns pointer to provided value

func Uint

func Uint(v uint) *uint

Uint returns pointer to provided value

func Uint16

func Uint16(v uint16) *uint16

Uint16 returns pointer to provided value

func Uint32

func Uint32(v uint32) *uint32

Uint32 returns pointer to provided value

func Uint64

func Uint64(v uint64) *uint64

Uint64 returns pointer to provided value

func Uint8

func Uint8(v uint8) *uint8

Uint8 returns pointer to provided value

Types

This section is empty.

Jump to

Keyboard shortcuts

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