tailscale.comtailscale.com/types/ptr Index | Files

package ptr

import "tailscale.com/types/ptr"

Package ptr contains the ptr.To function.

Index

Functions

func To

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

To returns a pointer to a shallow copy of v.

Source Files

ptr.go

Version
v1.84.0 (latest)
Published
May 21, 2025
Platform
linux/amd64
Last checked
1 day ago

Tools for package owners.