Copy elements between slices with copy:
src := []int{1, 2, 3}
dst := make([]int, len(src))
n := copy(dst, src)
Copy returns the number of elements copied. It copies the minimum of dst length and src length. The slices don't share memory after copying.