• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
July 08, 2022 |9.9K Views

Loops in go programming language

  Share   Like
Description
Discussion

Go language contains only a single loop that is for-loop. A for loop is a repetition control structure that allows us to write a loop that is executed a specific number of times. In Go language, this for loop can be used in the different forms and the forms are:

1. As simple for loop It is similar that we use in other programming languages like C, C++, Java, C#, etc.

Syntax:

for initialization; condition; post{
      // statements....
}

 


Loops in go programming language : https://www.geeksforgeeks.org/loops-in-go-language/