internal

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dereference

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

Dereference - utility function to safely dereference a pointer to either its value or a zero value if nil.

func Pointer

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

Pointer - utility function to convert a literal to a pointer. The `&` operator should be used for non-literal types, but this function will also work. See https://stackoverflow.com/a/30716481 for details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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