# Iterating Over Slices In Go

DevFeed: [Iterating Over Slices In Go](<https://devfeed.tech/articles/iterating-over-slices-in-go-22071.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2013/09/iterating-over-slices-in-go.html>)

Published: 2013-09-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [code](<https://devfeed.tech/tags/code.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [programming](<https://devfeed.tech/tags/programming.md>), [slices](<https://devfeed.tech/tags/slices.md>)

## AI overview

A tutorial on iterating over slices in Go. The supplied text introduces slices as collections used for data and discusses Go's imperative, pass-by-value model, including how pointers can affect memory use, performance, and synchronization.

## Source excerpt

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. External resource on ardanlabs.com: https://www.ardanlabs.com/blog/2013/08/understanding-slices-in-go-programming.html External resource on ardanlabs.com: https://www.ardanlabs.com/blog/2013/08/collections-of-unknown-length-in-go.html