Context: https://tour.golang.org/flowcontrol/7
In javascript or Java, below code doesn't harm:
if(true){
// do something
}
else{
// do something else
}
But it isn't the same case with Go , I guess. when i hit enter and add else in next line, it gives syntax error. I initially thought it was just indentation but later realized syntax is supposed to be the way as in this sample. Felt specifying the same would be helpful.