Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶
func Clone[T any](in []T) []T
Clone returns a shallow copy of a slice while preserving nil input as nil.
func ReverseClone ¶
func ReverseClone[T any](in []T) []T
ReverseClone returns a new slice with values from in in reverse order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.