Control Structures

There are only a few control structures in Go. To write loops we use the forkeyword, and there is a switch and of course an if. When working withchannels select will be used (see ). Parentheses are notrequired around the condition, and the body must always be brace-delimited.