DEV Community

Cover image for Understanding Go: part 6 – For ... range
Aurélie Vache
Aurélie Vache

Posted on

Understanding Go: part 6 – For ... range

Even if you can create your first application in Go in a few minutes, understanding a new programming language is not easy and can be time-consuming.

After writing the blog series Learning Go by examples, let's discover all the concepts of Go in a visual way, in sketchnotes.

In this blog post of sketchnotes about Go, let's discover another useful concept: For ... range.

for range
for range
for range
for range
for range

This is the sixth blog post of this serie so if you liked it, you can follow me, and tell me what do you think ❤️. If people are interested, I will publish others sketches shortly :-).

Moreover, if you are interested about this way to explain visually technologies, I published an entire illustrated book about Kubernetes, available in paperback on Amazon and in digital version on GumRoad: "Understanding Kubernetes in a visual way".
And an illustrated book about Docker, available in paperback on Amazon and in digital version on GumRoad: "Understanding Docker in a visual way".

Top comments (3)

Collapse
 
masterkind profile image
GO

best loop ever :
for _ = range 10

Collapse
 
aurelievache profile image
Aurélie Vache

for _ = range 10 {
fmt.Println("coucou")
}

^^

Collapse
 
maxatome profile image
Maxime Soulé

So simply

for range 10 {
  fmt.Println("coucou")
}
Enter fullscreen mode Exit fullscreen mode

:)