Coalesce¶
func Coalesce[T any](ptrs ...*T) *T
Coalesce returns the first non-nil pointer from the list. Returns nil if all pointers are nil.
func Coalesce[T any](ptrs ...*T) *T
Coalesce returns the first non-nil pointer from the list. Returns nil if all pointers are nil.