ptr

package
v0.69.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MPL-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq added in v0.66.2

func Eq[T comparable](a, b *T) bool

Eq compares two pointers and returns true if they are equal.

func Or

func Or[T any](p *T, or T) T

Or will dereference a pointer and return the given value if it's nil.

func Ptr

func Ptr[T any](val T) *T

Ptr creates a ptr from a value to use it inline.

Types

This section is empty.

Jump to

Keyboard shortcuts

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