Break and Continue

Learn about labeled breaks in Go.

We'll cover the following

Labeled break and continue

A perhaps less well-known feature of Go is the ability to label for, switch, and select statements, and use break and continue on those labels. Here’s how you can break from the outer loop:

Get hands-on with 1200+ tech skills courses.