From 73a1babad40c9cb421a3ca47a0ab2577735b8e7a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 27 Feb 2024 23:49:08 -0600 Subject: [PATCH] suggesting from the golang uber people --- action.go | 2 +- widget.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.go b/action.go index 4ea2d85..31ed5ab 100644 --- a/action.go +++ b/action.go @@ -47,7 +47,7 @@ type Action struct { type ActionType int // Add, SetText, Click, Hide, Append, Delete, etc const ( - Add ActionType = iota + Add ActionType = iota + 1 Delete SetText AddText diff --git a/widget.go b/widget.go index 2ff7773..e80d113 100644 --- a/widget.go +++ b/widget.go @@ -16,7 +16,7 @@ package widget type WidgetType int // Button, Menu, Checkbox, etc. const ( - Unknown WidgetType = iota + Unknown WidgetType = iota + 1 Root // the master 'root' node of the binary tree Flag // used to send configuration values to plugins Window // in certain gui's (ncurses), these are tabs