diff --git a/internal/ui/buffer.go b/internal/app/buffer.go similarity index 96% rename from internal/ui/buffer.go rename to internal/app/buffer.go index fa9cc9a..7d61f6b 100644 --- a/internal/ui/buffer.go +++ b/internal/app/buffer.go @@ -1,4 +1,4 @@ -package ui +package app // buffer is a rect of tiles type buffer struct { diff --git a/internal/ui/point.go b/internal/app/point.go similarity index 92% rename from internal/ui/point.go rename to internal/app/point.go index cb44cad..a925346 100644 --- a/internal/ui/point.go +++ b/internal/app/point.go @@ -1,4 +1,4 @@ -package ui +package app type point struct{ x, y int } diff --git a/internal/ui/tile.go b/internal/app/tile.go similarity index 90% rename from internal/ui/tile.go rename to internal/app/tile.go index 787ec6d..108ac68 100644 --- a/internal/ui/tile.go +++ b/internal/app/tile.go @@ -1,4 +1,4 @@ -package ui +package app import ( "github.com/gdamore/tcell/v2" diff --git a/internal/ui/ui.go b/internal/app/ui.go similarity index 99% rename from internal/ui/ui.go rename to internal/app/ui.go index b9f3d7d..f1a4954 100644 --- a/internal/ui/ui.go +++ b/internal/app/ui.go @@ -1,4 +1,4 @@ -package ui +package app import ( "fmt" diff --git a/internal/ui/view.go b/internal/app/view.go similarity index 99% rename from internal/ui/view.go rename to internal/app/view.go index c6818f3..626ac1b 100644 --- a/internal/ui/view.go +++ b/internal/app/view.go @@ -1,4 +1,4 @@ -package ui +package app import ( "github.com/gdamore/tcell/v2" diff --git a/main.go b/main.go index 6788bad..b9abdfd 100644 --- a/main.go +++ b/main.go @@ -5,9 +5,9 @@ import ( "os/signal" "time" + "github.com/jordanorelli/astro-domu/internal/app" "github.com/jordanorelli/astro-domu/internal/exit" "github.com/jordanorelli/astro-domu/internal/server" - "github.com/jordanorelli/astro-domu/internal/ui" "github.com/jordanorelli/blammo" ) @@ -62,9 +62,9 @@ func runClient(name string) { log.Info("total play time: %v", finished.Sub(start)) }() - ui := ui.UI{ + app := app.UI{ Log: log.Child("ui"), PlayerName: name, } - ui.Run() + app.Run() }