package to

import "github.com/Azure/azure-sdk-for-go/sdk/azcore/to"

Package to contains various type-conversion helper functions.

Index

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.

Source Files

doc.go to.go

Version
v1.18.0 (latest)
Published
Apr 3, 2025
Platform
windows/amd64
Last checked
4 hours ago

Tools for package owners.