package
0.0.0-20241210054802-24370beab758
Repository: https://github.com/kubernetes/utils.git
Documentation: pkg.go.dev

# README

Pointer

This package provides some functions for pointer-based operations.

# Variables

AllPtrFieldsNil tests whether all pointer fields in a struct are nil.
Bool returns a pointer to a bool.
BoolDeref dereferences the bool ptr and returns it if not nil, or else returns def.
BoolEqual returns true if both arguments are nil or both arguments dereference to the same value.
for back-compat.
for back-compat.
Duration returns a pointer to a time.Duration.
DurationDeref dereferences the time.Duration ptr and returns it if not nil, or else returns def.
DurationEqual returns true if both arguments are nil or both arguments dereference to the same value.
Float32 returns a pointer to a float32.
Float32Deref dereferences the float32 ptr and returns it if not nil, or else returns def.
Float32Equal returns true if both arguments are nil or both arguments dereference to the same value.
Float32Ptr is a function variable referring to Float32.
for back-compat.
Float64 returns a pointer to a float64.
Float64Deref dereferences the float64 ptr and returns it if not nil, or else returns def.
Float64Equal returns true if both arguments are nil or both arguments dereference to the same value.
Float64Ptr is a function variable referring to Float64.
for back-compat.
Int returns a pointer to an int.
Int32 returns a pointer to an int32.
Int32Deref dereferences the int32 ptr and returns it if not nil, or else returns def.
Int32Equal returns true if both arguments are nil or both arguments dereference to the same value.
for back-compat.
for back-compat.
Int64 returns a pointer to an int64.
Int64Deref dereferences the int64 ptr and returns it if not nil, or else returns def.
Int64Equal returns true if both arguments are nil or both arguments dereference to the same value.
for back-compat.
for back-compat.
IntDeref dereferences the int ptr and returns it if not nil, or else returns def.
for back-compat.
for back-compat.
String returns a pointer to a string.
StringDeref dereferences the string ptr and returns it if not nil, or else returns def.
StringEqual returns true if both arguments are nil or both arguments dereference to the same value.
for back-compat.
for back-compat.
Uint returns a pointer to an uint.
Uint32 returns a pointer to an uint32.
Uint32Deref dereferences the uint32 ptr and returns it if not nil, or else returns def.
Uint32Equal returns true if both arguments are nil or both arguments dereference to the same value.
for back-compat.
for back-compat.
Uint64 returns a pointer to an uint64.
Uint64Deref dereferences the uint64 ptr and returns it if not nil, or else returns def.
Uint64Equal returns true if both arguments are nil or both arguments dereference to the same value.
for back-compat.
for back-compat.
UintDeref dereferences the uint ptr and returns it if not nil, or else returns def.
for back-compat.
for back-compat.