From 1fce36cbc79e82efe701742b67ca89f20bd21d09 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 24 Mar 2022 16:16:41 +0100 Subject: Still learning, Go's pretty cool --- src/c_go2work.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/c_go2work.go') diff --git a/src/c_go2work.go b/src/c_go2work.go index e985144..a64f244 100644 --- a/src/c_go2work.go +++ b/src/c_go2work.go @@ -57,11 +57,19 @@ func main() { ticker := time.NewTicker(2 * time.Second) quit := make(chan struct{}) fmt.Println("Time is: " + t) - exec_player(true, "mpv", "--no-video", "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") + exec_player( + true, + "mpv", + "--no-video", + "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") for { select { case <- ticker.C: - exec_player(false, "mpv", "--no-video", "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") + exec_player( + false, + "mpv", + "--no-video", + "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") case <- quit: ticker.Stop() return -- cgit v1.2.3