Documentation
¶
Index ¶
- func IsEqual[T comparable](ptr *T, value T) bool
- func IsEqualOrZero[T comparable](ptr *T, value T) bool
- func IsEqualZero[T comparable](ptr *T) bool
- func IsNil[T any](ptr *T) bool
- func IsNotEqual[T comparable](ptr *T, value T) bool
- func IsNotEqualOrZero[T comparable](ptr *T, value T) bool
- func IsNotEqualZero[T comparable](ptr *T) bool
- func IsNotNil[T any](ptr *T) bool
- func IsNotZero[T comparable](ptr *T) bool
- func IsZero[T comparable](ptr *T) bool
- func New[T any](value T) *T
- func Set[T any](ptr *T, value T)
- func SetDefault[T any](ptr *T, def T)
- func SetDefaultZero[T any](ptr *T)
- func SetZero[T any](ptr *T)
- func Value[T any](ptr *T) T
- func ValueOr[T any](ptr *T, def T) T
- func ValueOrZero[T any](ptr *T) T
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 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 IsNotZero ¶
func IsNotZero[T comparable](ptr *T) bool
func IsZero ¶
func IsZero[T comparable](ptr *T) bool
func SetDefault ¶
func SetDefault[T any](ptr *T, def T)
func SetDefaultZero ¶
func SetDefaultZero[T any](ptr *T)
func ValueOrZero ¶
func ValueOrZero[T any](ptr *T) T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.