Return

Functions must return values ​​when this is specified in their declaration. To do so, use the return command, as follows:


func addup(x, y int) int {
    return x + y
}
                        
return.go