From f7cf8f93c17815b091d01d8023746c29e8e89095 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sun, 18 Feb 2018 23:51:55 -0800 Subject: [PATCH] Updated imports statements --- termui/block.go | 4 +++- termui/buffer.go | 4 +++- termui/gauge.go | 4 +++- termui/init.go | 4 +++- termui/list.go | 4 +++- termui/utils.go | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/termui/block.go b/termui/block.go index 2367ecf..2650256 100644 --- a/termui/block.go +++ b/termui/block.go @@ -1,6 +1,8 @@ package termui -import "image" +import ( + "image" +) // Block is a base struct for all other upper level widgets, // consider it as css: display:block. diff --git a/termui/buffer.go b/termui/buffer.go index c17c989..88a4b9f 100644 --- a/termui/buffer.go +++ b/termui/buffer.go @@ -1,6 +1,8 @@ package termui -import "image" +import ( + "image" +) // Cell is a rune with assigned Fg and Bg type Cell struct { diff --git a/termui/gauge.go b/termui/gauge.go index fbe7b8e..cdc3c7f 100644 --- a/termui/gauge.go +++ b/termui/gauge.go @@ -1,6 +1,8 @@ package termui -import "strconv" +import ( + "strconv" +) // Gauge is a progress bar like widget. type Gauge struct { diff --git a/termui/init.go b/termui/init.go index f9e470d..a48ecfc 100644 --- a/termui/init.go +++ b/termui/init.go @@ -1,6 +1,8 @@ package termui -import tb "github.com/nsf/termbox-go" +import ( + tb "github.com/nsf/termbox-go" +) // Init initializes termui library. This function should be called before any others. // After initialization, the library must be finalized by 'Close' function. diff --git a/termui/list.go b/termui/list.go index cb5cd8d..16e2519 100644 --- a/termui/list.go +++ b/termui/list.go @@ -1,6 +1,8 @@ package termui -import "fmt" +import ( + "fmt" +) // BarChart creates multiple bars in a widget: type List struct { diff --git a/termui/utils.go b/termui/utils.go index c4999be..4f4ef63 100644 --- a/termui/utils.go +++ b/termui/utils.go @@ -1,6 +1,8 @@ package termui -import "math" +import ( + "math" +) const DOTS = '…'