Skip to content

package ptr

import "github.com/cloudboss/unobin/pkg/ptr"

Package ptr provides conversions for pointer values.

Functions

func Value

func Value[T any](p *T) T

Value returns the value behind p, or the zero value of T when p is nil.