Iterating Over Slices In Go
Ardan Labs Blog on ·
Slices are used everywhere in my code. If I am working with data from MongoDB, it is stored in a slice. If I need to keep track of a collection of problems after running an operation, it is stored in a slice. If you don’t understand how slices work yet or have been avoiding them like I did when I started, read these two posts to learn more.
https://www.ardanlabs.com/blog/2013/08/understanding-slices-in-go-programming.html (https://www.ardanlabs.com/blog/2013/08/understanding-slices-in-go-programming.html)
https://www.ardanlabs.com/blog/2013/08/collections-of-unknown-length-in-go.html (https://www.ardanlabs.com/blog/2013/08/collections-of-unknown-length-in-go.html)