Vá recursão em Golang
package main
import "fmt"
func countDown(number int) {
fmt.Println("Countdown Starts:")
// display the number
fmt.Println(number)
// recursive call by decreasing number
countDown(number - 1)
}
func main() {
countDown(3)
}
SAMER SAEID