From 2c1ee0e24b924a9f45baa9fa395c1aa84e0afe56 Mon Sep 17 00:00:00 2001 From: Osman Chowdhury Date: Sat, 20 Aug 2022 00:06:00 +0600 Subject: [PATCH] fix: fix import package directory --- display/display.go | 8 ++------ root.go | 7 ++----- service/note.go | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/display/display.go b/display/display.go index 1f13e38..567a62b 100644 --- a/display/display.go +++ b/display/display.go @@ -3,9 +3,9 @@ package display import ( "strings" - "github.com/Kimbbakar/yatt/service" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" + "github.com/zing-lab/yatt/service" ) var ( @@ -16,11 +16,7 @@ var ( noteId map[int]string ) -func init() { - initDisplay() -} - -func initDisplay() { +func Show() { srvc = service.NoteService{} app = tview.NewApplication() list = tview.NewList() diff --git a/root.go b/root.go index cb3c782..f7e3790 100644 --- a/root.go +++ b/root.go @@ -1,12 +1,9 @@ package main import ( - _ "github.com/Kimbbakar/yatt/display" + "github.com/zing-lab/yatt/display" ) func main() { - // if err := RootCmd.Execute(); err != nil { - // fmt.Println(err) - // os.Exit(1) - // } + display.Show() } diff --git a/service/note.go b/service/note.go index 6adab81..724510b 100644 --- a/service/note.go +++ b/service/note.go @@ -10,7 +10,7 @@ import ( "github.com/dustin/go-humanize" - "github.com/Kimbbakar/yatt/repository" + "github.com/zing-lab/yatt/repository" ) var (