Skip to content

Commit

Permalink
fix: fix import package directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimbbakar committed Aug 19, 2022
1 parent 23fd135 commit 2c1ee0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
8 changes: 2 additions & 6 deletions display/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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()
Expand Down
7 changes: 2 additions & 5 deletions root.go
Original file line number Diff line number Diff line change
@@ -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()
}
2 changes: 1 addition & 1 deletion service/note.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/dustin/go-humanize"

"github.com/Kimbbakar/yatt/repository"
"github.com/zing-lab/yatt/repository"
)

var (
Expand Down

0 comments on commit 2c1ee0e

Please sign in to comment.