Working with Slices in Go (Golang) - Understanding How append, copy and Slice Expressions Work


Content

Introduction
How Slices Work
How append and copy Works
How Slice Expressions Work
⚠️ Modifying a Sliced-slice Modifies the Original Slice
⚠️ Calling append on a Sliced-slice May Modify the Original Slice



Introduction


Go programming language has two fundamental types at the language level to enable working with numbered sequence of elements: array and slice. At the syntax level, they may look like the same but they are fundamentally very different in terms of their behavior. The m...

 •  0 comments  •  flag
Share on Twitter
Published on September 12, 2020 09:55
No comments have been added yet.