# README
Overview
For
- normal
for <init>; <condition>; <post> {
- while
for <condition> {
- forever
for {
- can control execution using
break
&continue
- can control execution using
if
- with statements
if <statement>; <condition> {
var
s declared within statement are available only withinif / else if / else
block
Switch statements
- no break
- statements are optional
- top-down execution - where execution stops after a case succeeds
- normal
switch <value> { case <match>
- takes statement
switch <statement>; <value> { case <match>
- conditional
switch { case <bool-statement>:
if-else-if
Ranges
for
along withrange
- range returns
index
&element
for index, element := range "abc" {
for <index>, <value> := range <var> {
- range returns
- For maps:
for <key>, <value> := range <map-type> {