package
1.3.0
Repository: https://github.com/go-sigma/sigma.git
Documentation: pkg.go.dev

# README

ptr

import "code.byted.org/epscp/common/ptr"

Package ptr ...

Index

func Of

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

Of returns pointer to value.

func To

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

To returns the value of the pointer passed in or the default value if the pointer is nil.

func ToDef

func ToDef[T any](v *T, def T) T

ToDef returns the value of the int pointer passed in or default value if the pointer is nil.

Generated by gomarkdoc