ToPointerSlice¶
func ToPointerSlice[T any](values []T) []*T
ToPointerSlice converts a slice of values to a slice of pointers. Each element in the result points to the corresponding element in the input.
func ToPointerSlice[T any](values []T) []*T
ToPointerSlice converts a slice of values to a slice of pointers. Each element in the result points to the corresponding element in the input.