xptr

package
v1.15.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Of

func Of[T any](value T) *T

Of returns pointer to value.

func ValueOr added in v1.10.0

func ValueOr[T any](a *T, b T) T

ValueOr returns the first non-nil value. If the first argument is not nil, it is returned. Otherwise, the second argument is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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