In Go, the traditional while loop, found in many programming languages, can done through the for keyword. Below are two alternative versions, a for can work as an infinite loop without any parameters, or with a true boolean.



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here