internal

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 1 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.

func WaitGroupDone added in v1.4.0

func WaitGroupDone(wg *sync.WaitGroup) <-chan byte

WaitGroupDone returns a channel that will be closed when the wait group is done.

Types

This section is empty.

Jump to

Keyboard shortcuts

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