pointers

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool returns a pointer to the given bool.

func Byte

func Byte(v byte) *byte

Byte Bytes (slice) and Runes

func Bytes added in v1.13.0

func Bytes(v []byte) *string

Bytes returns a pointer to the given string.

func Complex64

func Complex64(v complex64) *complex64

Complex64 Complex numbers

func Complex128

func Complex128(v complex128) *complex128

func Float32

func Float32(v float32) *float32

Float32 Floats

func Float64

func Float64(v float64) *float64

func Int

func Int(v int) *int

Int Integers

func Int8

func Int8(v int8) *int8

func Int16

func Int16(v int16) *int16

func Int32

func Int32(v int32) *int32

func Int64

func Int64(v int64) *int64

func Rune

func Rune(v rune) *rune

func String

func String(v string) *string

String returns a pointer to the given string.

func To

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

To returns a pointer to the given value.

func Uint

func Uint(v uint) *uint

func Uint8

func Uint8(v uint8) *uint8

func Uint16

func Uint16(v uint16) *uint16

func Uint32

func Uint32(v uint32) *uint32

func Uint64

func Uint64(v uint64) *uint64

func Uintptr

func Uintptr(v uintptr) *uintptr

func Value

func Value[T any](p *T) T

Value returns the value of the pointer, or the zero value if nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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