From 38fe18fc9b89365566359d075335a8d474f16709 Mon Sep 17 00:00:00 2001 From: Simon Garrelou Date: Wed, 7 Dec 2022 20:21:55 +0100 Subject: Use methods instead of functions (makes more sense) --- src/alert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/alert.go') diff --git a/src/alert.go b/src/alert.go index 917d089..bfa7321 100644 --- a/src/alert.go +++ b/src/alert.go @@ -6,7 +6,7 @@ import ( "github.com/rivo/tview" ) -func alert(a *app, format string, params ...interface{}) { +func (a *app) alert(format string, params ...interface{}) { modal := tview.NewModal(). SetText(fmt.Sprintf(format, params...)). AddButtons([]string{"OK"}). -- cgit v1.2.3