The _______ function in Go is used to make a copy of a slice or map.

  • clone
  • copy
  • duplicate
  • replicate
The copy function in Go is used to make a copy of a slice or map. It takes two arguments: the destination slice or map and the source slice or map to copy from. It creates a new copy, independent of the original.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *