🎨 go fmt

This commit is contained in:
makeworld 2021-04-07 12:56:32 -04:00
parent 045848bdbf
commit f622a96696
9 changed files with 9 additions and 9 deletions

View File

@ -11,13 +11,13 @@ import (
"runtime" "runtime"
"strings" "strings"
"code.rocketnine.space/tslocum/cview"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/makeworld-the-better-one/amfora/cache" "github.com/makeworld-the-better-one/amfora/cache"
homedir "github.com/mitchellh/go-homedir" homedir "github.com/mitchellh/go-homedir"
"github.com/rkoesters/xdg/basedir" "github.com/rkoesters/xdg/basedir"
"github.com/rkoesters/xdg/userdirs" "github.com/rkoesters/xdg/userdirs"
"github.com/spf13/viper" "github.com/spf13/viper"
"code.rocketnine.space/tslocum/cview"
) )
var amforaAppData string // Where amfora files are stored on Windows - cached here var amforaAppData string // Where amfora files are stored on Windows - cached here

View File

@ -3,13 +3,13 @@ package display
import ( import (
"fmt" "fmt"
"code.rocketnine.space/tslocum/cview"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/makeworld-the-better-one/amfora/bookmarks" "github.com/makeworld-the-better-one/amfora/bookmarks"
"github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/config"
"github.com/makeworld-the-better-one/amfora/renderer" "github.com/makeworld-the-better-one/amfora/renderer"
"github.com/makeworld-the-better-one/amfora/structs" "github.com/makeworld-the-better-one/amfora/structs"
"github.com/spf13/viper" "github.com/spf13/viper"
"code.rocketnine.space/tslocum/cview"
) )
// For adding and removing bookmarks, basically a clone of the input modal. // For adding and removing bookmarks, basically a clone of the input modal.

View File

@ -8,6 +8,7 @@ import (
"strings" "strings"
"sync" "sync"
"code.rocketnine.space/tslocum/cview"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/makeworld-the-better-one/amfora/cache" "github.com/makeworld-the-better-one/amfora/cache"
"github.com/makeworld-the-better-one/amfora/config" "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/amfora/structs"
"github.com/makeworld-the-better-one/go-gemini" "github.com/makeworld-the-better-one/go-gemini"
"github.com/spf13/viper" "github.com/spf13/viper"
"code.rocketnine.space/tslocum/cview"
) )
var tabs []*tab // Slice of all the current browser tabs var tabs []*tab // Slice of all the current browser tabs

View File

@ -14,6 +14,7 @@ import (
"strings" "strings"
"time" "time"
"code.rocketnine.space/tslocum/cview"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/config"
"github.com/makeworld-the-better-one/amfora/structs" "github.com/makeworld-the-better-one/amfora/structs"
@ -21,7 +22,6 @@ import (
"github.com/makeworld-the-better-one/go-gemini" "github.com/makeworld-the-better-one/go-gemini"
"github.com/schollz/progressbar/v3" "github.com/schollz/progressbar/v3"
"github.com/spf13/viper" "github.com/spf13/viper"
"code.rocketnine.space/tslocum/cview"
) )
// For choosing between download and the portal - copy of YesNo basically // For choosing between download and the portal - copy of YesNo basically

View File

@ -5,9 +5,9 @@ import (
"strings" "strings"
"text/tabwriter" "text/tabwriter"
"code.rocketnine.space/tslocum/cview"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/config"
"code.rocketnine.space/tslocum/cview"
) )
var helpCells = strings.TrimSpace( var helpCells = strings.TrimSpace(

View File

@ -5,11 +5,11 @@ import (
"strings" "strings"
"time" "time"
"code.rocketnine.space/tslocum/cview"
humanize "github.com/dustin/go-humanize" humanize "github.com/dustin/go-humanize"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/config"
"github.com/spf13/viper" "github.com/spf13/viper"
"code.rocketnine.space/tslocum/cview"
) )
// This file contains code for the popups / modals used in the display. // This file contains code for the popups / modals used in the display.

View File

@ -4,10 +4,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"code.rocketnine.space/tslocum/cview"
"github.com/gdamore/tcell/v2" "github.com/gdamore/tcell/v2"
"github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/config"
"github.com/makeworld-the-better-one/amfora/structs" "github.com/makeworld-the-better-one/amfora/structs"
"code.rocketnine.space/tslocum/cview"
) )
type tabMode int type tabMode int

View File

@ -5,9 +5,9 @@ import (
"net/url" "net/url"
"strings" "strings"
"code.rocketnine.space/tslocum/cview"
"github.com/makeworld-the-better-one/go-gemini" "github.com/makeworld-the-better-one/go-gemini"
"github.com/spf13/viper" "github.com/spf13/viper"
"code.rocketnine.space/tslocum/cview"
"golang.org/x/text/unicode/norm" "golang.org/x/text/unicode/norm"
) )

View File

@ -11,9 +11,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"code.rocketnine.space/tslocum/cview"
"github.com/makeworld-the-better-one/amfora/config" "github.com/makeworld-the-better-one/amfora/config"
"github.com/spf13/viper" "github.com/spf13/viper"
"code.rocketnine.space/tslocum/cview"
) )
// Regex for identifying ANSI color codes // Regex for identifying ANSI color codes