to

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package to contains various type-conversion helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

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

Ptr returns a pointer to the provided value.

func SliceOfPtrs

func SliceOfPtrs[T any](vv ...T) []*T

SliceOfPtrs returns a slice of *T from the specified values.

func ValOrZero added in v0.29.0

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

ValOrZero returns the value of the pointer or the zero value of the type if the pointer is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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