package main import ( "github.com/fhs/gompd/mpd" // "github.com/gdamore/tcell/v2" "github.com/rivo/tview" // "fmt" ) func togglePlayBack(connection mpd.Client) error { status, err := connection.Status() if(status["state"] == "play" && err == nil){ connection.Pause(true) } else if(status["state"] == "pause" && err == nil) { connection.Play(-1) } return err } func join ( stringSlice [] string ) string{ var _s string = stringSlice[0] for i:= 1; i