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
|
type ActionType int // Add, SetText, Click, Hide, Append, Delete, etc
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Add ActionType = iota
|
Add ActionType = iota + 1
|
||||||
Delete
|
Delete
|
||||||
SetText
|
SetText
|
||||||
AddText
|
AddText
|
||||||
|
|
|
@ -16,7 +16,7 @@ package widget
|
||||||
type WidgetType int // Button, Menu, Checkbox, etc.
|
type WidgetType int // Button, Menu, Checkbox, etc.
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Unknown WidgetType = iota
|
Unknown WidgetType = iota + 1
|
||||||
Root // the master 'root' node of the binary tree
|
Root // the master 'root' node of the binary tree
|
||||||
Flag // used to send configuration values to plugins
|
Flag // used to send configuration values to plugins
|
||||||
Window // in certain gui's (ncurses), these are tabs
|
Window // in certain gui's (ncurses), these are tabs
|
||||||
|
|
Loading…
Reference in New Issue