pointer

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEqual

func IsEqual[T comparable](ptr *T, value T) bool

func IsEqualOrZero

func IsEqualOrZero[T comparable](ptr *T, value T) bool

func IsEqualZero

func IsEqualZero[T comparable](ptr *T) bool

func IsNil

func IsNil[T any](ptr *T) bool

func IsNotEqual

func IsNotEqual[T comparable](ptr *T, value T) bool

func IsNotEqualOrZero

func IsNotEqualOrZero[T comparable](ptr *T, value T) bool

func IsNotEqualZero

func IsNotEqualZero[T comparable](ptr *T) bool

func IsNotNil

func IsNotNil[T any](ptr *T) bool

func IsNotZero

func IsNotZero[T comparable](ptr *T) bool

func IsZero

func IsZero[T comparable](ptr *T) bool

func New

func New[T any](value T) *T

func Set

func Set[T any](ptr *T, value T)

func SetDefault

func SetDefault[T any](ptr *T, def T)

func SetDefaultZero

func SetDefaultZero[T any](ptr *T)

func SetZero

func SetZero[T any](ptr *T)

func Value

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

func ValueOr

func ValueOr[T any](ptr *T, def T) T

func ValueOrZero

func ValueOrZero[T any](ptr *T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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