What does “return” mean in the “if-else” loop in Golang?
-
ifis a conditional construct and not a loop. - It is not special, a
returnin anifstatement will do the same as one outside of anifstatement. 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.