suggesting from the golang uber people
This commit is contained in:
parent
01c8dd6cf4
commit
73a1babad4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue