What does “return” mean in the “if-else” loop in Golang?
-
if
is a conditional construct and not a loop. - It is not special, a
return
in anif
statement will do the same as one outside of anif
statement. It will return zero to many values from the current function to its caller.
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.