Need Assistance?

support@tutorialshub.in

Arrays, Slices & Maps

Slicing Expressions & copy()

ADVERTISEMENT
Go (Golang) Free Lesson
5 min read
ADVERTISEMENT

Sub-slices (s[1:3]) share the same underlying memory array! Use slices.Clone() or copy() when you want an independent copy.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you