utils

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogError

func LogError(log *slog.Logger, err error) error

LogError logs err using log if it is non-nil and returns err unchanged.

func Ptr

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

Ptr returns a pointer to v.

func Zero

func Zero[T any]() (v T)

Zero returns the zero value of type T.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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