Is there any Golang equivalent for Java's java.lang.System.arraycopy()
?
arraycopy(Object source_arr, int sourcePos, Object dest_arr, int destPos, int len)
To copy a source array from a specific beginning position to the destination array from the mentioned position. Number of arguments to be copied are decided by len
argument.
The components at source_Position
to source_Position + length – 1
are copied to destination array from destination_Position
to destination_Position + length – 1
.