Documentation
¶
Overview ¶
Package ptrx holds the pointer helpers Go's optional-field style forces on every service: taking the address of a literal, and reading through a possibly-nil pointer. The stdlib has no answer (k8s.io/utils/ptr exists precisely because of that gap).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatOr ¶
FormatOr renders *p with fmt.Sprint, or fallback when p is nil — for logs where a nil optional should read as something ("default", "unset") instead of a pointer literal or a misleading zero.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.