While True: Looping in Go
·
93 words
·
1 minute read
In Go, the traditional while true 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.
|
|