summaryrefslogtreecommitdiff
path: root/internal/quit/quit.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/quit/quit.go')
-rw-r--r--internal/quit/quit.go14
1 files changed, 5 insertions, 9 deletions
diff --git a/internal/quit/quit.go b/internal/quit/quit.go
index de1e3b4..ac11abc 100644
--- a/internal/quit/quit.go
+++ b/internal/quit/quit.go
@@ -2,16 +2,12 @@ package quit
import tea "github.com/charmbracelet/bubbletea"
+const byeMsg = "Goodbye!\n"
+
type Model struct{}
-func (m Model) Init() tea.Cmd {
- return nil
-}
+func (m Model) Init() tea.Cmd { return nil }
-func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) {
- return m, nil
-}
+func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) { return m, nil }
-func (m Model) View() string {
- return "Goodbye!\n"
-}
+func (m Model) View() string { return byeMsg }