util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: EUPL-1.2 Imports: 0 Imported by: 0

Documentation

Overview

Package util contains internal utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PtrTo

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

PtrTo returns a pointer to the given value.

func ValueOrDefault

func ValueOrDefault[T any](p *T) (v T)

ValueOrDefault returns the value from the given pointer, or the zero value of the given type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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