From b4e6402a25288de05502587d0efb4a20080f6523 Mon Sep 17 00:00:00 2001 From: aditya-K2 Date: Thu, 14 Oct 2021 22:02:29 +0530 Subject: [PATCH] Added Update Function This function will be useful to update the expanded view whenever user navigates the file browser. The expanded view is a table which shows the directory content. --- client.go | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/client.go b/client.go index 819ead0..2daa00a 100644 --- a/client.go +++ b/client.go @@ -2,6 +2,9 @@ package main import ( "github.com/fhs/gompd/mpd" + // "github.com/gdamore/tcell/v2" + "github.com/rivo/tview" + // "fmt" ) func togglePlayBack(connection mpd.Client) error { @@ -13,3 +16,47 @@ func togglePlayBack(connection mpd.Client) error { } return err } + +func join ( stringSlice [] string ) string{ + var _s string = stringSlice[0] + for i:= 1; i