From 8cecad864fb0b099a5f55bf1c97fbc1daca103e0 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 12 Aug 2018 11:49:26 +1000 Subject: [PATCH] use dimensions method rather than function --- view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.go b/view.go index 9618153..462cb47 100644 --- a/view.go +++ b/view.go @@ -122,7 +122,7 @@ func newView(name string, x0, y0, x1, y1 int, mode OutputMode) *View { } // Dimensions returns the dimensions of the View -func Dimensions(v *View) (int, int, int, int) { +func (v *View) Dimensions() (int, int, int, int) { return v.x0, v.y0, v.x1, v.y1 }