Security with Go
上QQ阅读APP看书,第一时间看更新

Control structures

Control structures are used to control the flow of program execution. The most common forms are the if statements, for loops, and switch statements. Go also supports the goto statement, but should be reserved for cases of extreme performance and not used regularly. Let's look briefly at each of these to understand the syntax.