[Go] if - scoped variable
// Defined a err variable err and assige the return value of someFunction()
// err only available in if {} block, not outside
if err := someFunction(); err != nil {
fmt.Println(err)
}
// Defined a err variable err and assige the return value of someFunction()
// err only available in if {} block, not outside
if err := someFunction(); err != nil {
fmt.Println(err)
}