3 How to use the copy function in Go

yourbasic.org posted by gopher 2283 days ago  

The built-in copy function copies elements into a destination slice dst from a source slice src. It returns the number of elements copied, which will be the minimum of len(dst)and len(src). The result does not depend on whether the arguments overlap.

Register to comment or vote on this story