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

Aurélie Vache @aurelievache

About: DevRel - Docker captain - CNCF Ambassador - Google Cloud Developer Expert - CKAD - Speaker - Sketchnoter - Technical writer - Conferences organizer - Women in tech association Leader - Mentor

Location:
Toulouse, France
Joined:
Mar 12, 2017

Understanding Go: part 6 – For ... range

Publish Date: Mar 18 '24
2 3

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".

Comments 3 total

  • GO
    GOMar 18, 2024

    best loop ever :
    for _ = range 10

    • Aurélie Vache
      Aurélie VacheMar 18, 2024

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

      ^^

      • Maxime Soulé
        Maxime SouléMar 21, 2024

        So simply

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

        :)

Add comment