GoSlicecopy
cap

copySlice

make

Copies elements from src into dst and returns the number of elements copied.

Syntax

copy(dst, src []T) int