go-roflcopter/main.go

25 lines
289 B
Go
Raw Normal View History

2021-12-12 02:12:56 +03:00
package main
import (
"fmt"
"sync"
"time"
"morozovad.ddns.net/lnd212/go-roflocopter/roflcopter"
)
var wg sync.WaitGroup
func player(){
roflcopter.Sound(&wg)
wg.Wait()
player()
}
func main() {
fmt.Println("HW")
roflcopter.Sound(&wg)
go player()
time.Sleep(15*time.Second)
}