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