Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Of ¶
func Of[T any](t T) *T
Of returns a pointer to the input. In most cases, callers should just do &t. However, in some cases Go cannot take a pointer. For example, `ptr.Of(f())`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.