pointer

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 0 Imported by: 14

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 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