* no else return * fix var ref * fix importing/requiring dependencies * complete longest common examples
17 lines
145 B
Go
17 lines
145 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func countdown(i int) {
|
|
fmt.Println(i)
|
|
if i <= 0 {
|
|
return
|
|
}
|
|
|
|
countdown(i - 1)
|
|
}
|
|
|
|
func main() {
|
|
countdown(5)
|
|
}
|