How to Append to a Slice in Golang
Too Long; Didn't ReadSlices in Go are not the same as slices in another programming language i.e Python. Assigning one slice to another only makes a shallow copy of the slice and should be used cautiously if you want to create a new slice from the existing slice. Go lang is easier to understand and get started with but it has its intricacies. I was working on a project and came across this behavior. I had a similar requirement where I had to manipulate slices and create new ones using Go. Thinking that it would be similar to other languages, I followed a similar approach.