Help us shape the future of Go! Take the 2026 Go Developer Survey

pointer

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 0 Imported by: 31

Documentation

Overview

pointer package provides some pointer shortcuts. See: 1: https://stackoverflow.com/questions/50830676/set-int-pointer-to-int-value-golang 2: https://github.com/openlyinc/pointy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone added in v0.67.8

func Clone[E any](e *E) *E

func Dereference added in v0.55.0

func Dereference[E any](e *E) E

func DereferenceSlice added in v0.61.0

func DereferenceSlice[S ~[]*E, E any](s S) []E

func Pointer added in v0.55.0

func Pointer[E any](e E) *E

func PointerSlice added in v0.61.0

func PointerSlice[S ~[]E, E any](s S) []*E

Types

This section is empty.

Jump to

Keyboard shortcuts

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