Answers for "golang forever loop"

Go
2

go infinite loop

func main() {
	for {
	}
}
Posted by: Guest on January-12-2021
0

golang for loop

// Reverse a
for i, j := 0, len(a)-1; i < j; i, j = i+1, j-1 {
    a[i], a[j] = a[j], a[i]
}
Posted by: Guest on April-19-2022

Browse Popular Code Answers by Language