Go (just use a linter basically):
//Function Signatures:
func foo(arg1: int, arg2: bool) {
//if/else
if x == y {
return x
}
return y
//No non bracketed blocks
//wrong:
if x == 1
return true
//correct:
if x == 1 {
return true
}
Go (just use a linter basically):
//Function Signatures:
func foo(arg1: int, arg2: bool) {
//if/else
if x == y {
return x
}
return y
//No non bracketed blocks
//wrong:
if x == 1
return true
//correct:
if x == 1 {
return true
}