ptr

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T comparable](a, b *T) bool

func Of added in v0.1.66

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

func To added in v0.1.66

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

func ToDef added in v0.1.66

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

Types

type Val added in v0.6.8

type Val[T any] struct {
	// contains filtered or unexported fields
}

func (Val[T]) Get added in v0.6.8

func (o Val[T]) Get() (v *T, ok bool)

func (*Val[T]) Set added in v0.6.8

func (o *Val[T]) Set(v *T)

Jump to

Keyboard shortcuts

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