util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[T any]() T

Empty returns an empty value.

func FromPtr

func FromPtr[T any](x *T) T

FromPtr returns the pointer value or empty.

func ToPtr

func ToPtr[T any](x T) *T

ToPtr returns a pointer copy of value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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