From e80c9efef2694f7c4d59cd4fe35b2fc55a701fac Mon Sep 17 00:00:00 2001 From: Tom Lanser Date: Wed, 6 Mar 2024 12:05:08 +0100 Subject: [PATCH] chore: import sorting Signed-off-by: Tom Lanser --- discord/discord.go | 3 ++- main.go | 3 ++- ui/keybindings.go | 3 ++- ui/player.go | 3 ++- ui/tui.go | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/discord/discord.go b/discord/discord.go index c3563d0..cb743fb 100644 --- a/discord/discord.go +++ b/discord/discord.go @@ -2,9 +2,10 @@ package discord import ( "errors" + "time" + "github.com/hugolgst/rich-go/client" "github.com/tommylans/goradio/channels" - "time" ) var ( diff --git a/main.go b/main.go index 26d105a..8ef1c7f 100644 --- a/main.go +++ b/main.go @@ -2,10 +2,11 @@ package main import ( "flag" + "log" + "github.com/tommylans/goradio/discord" "github.com/tommylans/goradio/radioplayer" "github.com/tommylans/goradio/ui" - "log" ) var ( diff --git a/ui/keybindings.go b/ui/keybindings.go index d7bdea6..970cbc1 100644 --- a/ui/keybindings.go +++ b/ui/keybindings.go @@ -1,9 +1,10 @@ package ui import ( - "github.com/gdamore/tcell/v2" "log" "os" + + "github.com/gdamore/tcell/v2" ) func (p *PlayerUi) playerKeyBindHandler() func(event *tcell.EventKey) *tcell.EventKey { diff --git a/ui/player.go b/ui/player.go index f9fec0e..3e717b5 100644 --- a/ui/player.go +++ b/ui/player.go @@ -1,11 +1,12 @@ package ui import ( + "log" + "github.com/gdamore/tcell/v2" "github.com/rivo/tview" "github.com/tommylans/goradio/channels" "github.com/tommylans/goradio/discord" - "log" ) func (p *PlayerUi) initTracksTable() { diff --git a/ui/tui.go b/ui/tui.go index 9ba8ae9..d6fe034 100644 --- a/ui/tui.go +++ b/ui/tui.go @@ -1,11 +1,12 @@ package ui import ( + "sync" + "github.com/gdamore/tcell/v2" "github.com/rivo/tview" "github.com/tommylans/goradio/channels" "github.com/tommylans/goradio/radioplayer" - "sync" ) type PlayerUi struct {