From f622a96696127856b8649441cf93f291b3b832a3 Mon Sep 17 00:00:00 2001 From: makeworld Date: Wed, 7 Apr 2021 12:56:32 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20go=20fmt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 2 +- display/bookmarks.go | 2 +- display/display.go | 2 +- display/download.go | 2 +- display/help.go | 2 +- display/modals.go | 2 +- display/tab.go | 2 +- display/util.go | 2 +- renderer/renderer.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config/config.go b/config/config.go index c0af3ea..6d81f22 100644 --- a/config/config.go +++ b/config/config.go @@ -11,13 +11,13 @@ import ( "runtime" "strings" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" "github.com/makeworld-the-better-one/amfora/cache" homedir "github.com/mitchellh/go-homedir" "github.com/rkoesters/xdg/basedir" "github.com/rkoesters/xdg/userdirs" "github.com/spf13/viper" - "code.rocketnine.space/tslocum/cview" ) var amforaAppData string // Where amfora files are stored on Windows - cached here diff --git a/display/bookmarks.go b/display/bookmarks.go index d3083cf..e956fb5 100644 --- a/display/bookmarks.go +++ b/display/bookmarks.go @@ -3,13 +3,13 @@ package display import ( "fmt" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" "github.com/makeworld-the-better-one/amfora/bookmarks" "github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/renderer" "github.com/makeworld-the-better-one/amfora/structs" "github.com/spf13/viper" - "code.rocketnine.space/tslocum/cview" ) // For adding and removing bookmarks, basically a clone of the input modal. diff --git a/display/display.go b/display/display.go index 36f3262..b94c5b9 100644 --- a/display/display.go +++ b/display/display.go @@ -8,6 +8,7 @@ import ( "strings" "sync" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" "github.com/makeworld-the-better-one/amfora/cache" "github.com/makeworld-the-better-one/amfora/config" @@ -15,7 +16,6 @@ import ( "github.com/makeworld-the-better-one/amfora/structs" "github.com/makeworld-the-better-one/go-gemini" "github.com/spf13/viper" - "code.rocketnine.space/tslocum/cview" ) var tabs []*tab // Slice of all the current browser tabs diff --git a/display/download.go b/display/download.go index b5dbc93..28fa9fa 100644 --- a/display/download.go +++ b/display/download.go @@ -14,6 +14,7 @@ import ( "strings" "time" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" "github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/structs" @@ -21,7 +22,6 @@ import ( "github.com/makeworld-the-better-one/go-gemini" "github.com/schollz/progressbar/v3" "github.com/spf13/viper" - "code.rocketnine.space/tslocum/cview" ) // For choosing between download and the portal - copy of YesNo basically diff --git a/display/help.go b/display/help.go index aa77021..2f9c437 100644 --- a/display/help.go +++ b/display/help.go @@ -5,9 +5,9 @@ import ( "strings" "text/tabwriter" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" "github.com/makeworld-the-better-one/amfora/config" - "code.rocketnine.space/tslocum/cview" ) var helpCells = strings.TrimSpace( diff --git a/display/modals.go b/display/modals.go index 2dcc5d1..bae710b 100644 --- a/display/modals.go +++ b/display/modals.go @@ -5,11 +5,11 @@ import ( "strings" "time" + "code.rocketnine.space/tslocum/cview" humanize "github.com/dustin/go-humanize" "github.com/gdamore/tcell/v2" "github.com/makeworld-the-better-one/amfora/config" "github.com/spf13/viper" - "code.rocketnine.space/tslocum/cview" ) // This file contains code for the popups / modals used in the display. diff --git a/display/tab.go b/display/tab.go index 893af21..e5acad9 100644 --- a/display/tab.go +++ b/display/tab.go @@ -4,10 +4,10 @@ import ( "strconv" "strings" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" "github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/structs" - "code.rocketnine.space/tslocum/cview" ) type tabMode int diff --git a/display/util.go b/display/util.go index 6e00101..e0949ab 100644 --- a/display/util.go +++ b/display/util.go @@ -5,9 +5,9 @@ import ( "net/url" "strings" + "code.rocketnine.space/tslocum/cview" "github.com/makeworld-the-better-one/go-gemini" "github.com/spf13/viper" - "code.rocketnine.space/tslocum/cview" "golang.org/x/text/unicode/norm" ) diff --git a/renderer/renderer.go b/renderer/renderer.go index 9d80961..1c619da 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -11,9 +11,9 @@ import ( "strconv" "strings" + "code.rocketnine.space/tslocum/cview" "github.com/makeworld-the-better-one/amfora/config" "github.com/spf13/viper" - "code.rocketnine.space/tslocum/cview" ) // Regex for identifying ANSI color codes