summaryrefslogtreecommitdiff
path: root/examples/go-dashboard/main.go
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-09-01 23:44:09 +0200
committerToni Uhlig <matzeton@googlemail.com>2020-09-01 23:46:07 +0200
commit0a03293d16ca0fc9f493a58748da1c43d35782e4 (patch)
treea1ceefdb8b21615de9e34d8da36d805ecb1e7990 /examples/go-dashboard/main.go
parent70febd225b0255cee6408a97b360f4edb7c7e8e3 (diff)
go-dashboard: go mod/vendor support + termdash text user interface
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/go-dashboard/main.go')
-rw-r--r--examples/go-dashboard/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/go-dashboard/main.go b/examples/go-dashboard/main.go
index b9dcd314d..89ec9adef 100644
--- a/examples/go-dashboard/main.go
+++ b/examples/go-dashboard/main.go
@@ -9,6 +9,8 @@ import (
"os"
"strconv"
"strings"
+
+ "ui"
)
var (
@@ -21,6 +23,8 @@ var (
)
func main() {
+ ui.Init()
+
InfoLogger = log.New(os.Stderr, "INFO: ", log.Ldate|log.Ltime|log.Lshortfile)
WarningLogger = log.New(os.Stderr, "WARNING: ", log.Ldate|log.Ltime|log.Lshortfile)
ErrorLogger = log.New(os.Stderr, "ERROR: ", log.Ldate|log.Ltime|log.Lshortfile)