aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-03-24 16:16:41 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2022-03-24 16:16:41 +0100
commit1fce36cbc79e82efe701742b67ca89f20bd21d09 (patch)
tree1484d4b8012cc03c098405a529e5ff7140195207
parentLearning in progress (diff)
downloadgo2work-1fce36cbc79e82efe701742b67ca89f20bd21d09.tar.gz
go2work-1fce36cbc79e82efe701742b67ca89f20bd21d09.tar.bz2
go2work-1fce36cbc79e82efe701742b67ca89f20bd21d09.tar.xz
go2work-1fce36cbc79e82efe701742b67ca89f20bd21d09.tar.zst
go2work-1fce36cbc79e82efe701742b67ca89f20bd21d09.zip
Still learning, Go's pretty cool
-rw-r--r--src/c_go2work.go12
1 files changed, 10 insertions, 2 deletions
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