aboutsummaryrefslogtreecommitdiff
path: root/button_string.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-10-13 00:33:30 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-10-13 00:33:30 +0200
commit66996dc337ce7f8a20814da28f39b6e6dc435be0 (patch)
tree1c86d8e9c5afa976faf6e7c7333003c1f249aa66 /button_string.go
parent4956d12bc59a9f5d95ac6d5daab5070f92e7c5ad (diff)
stringer
Diffstat (limited to 'button_string.go')
-rw-r--r--button_string.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/button_string.go b/button_string.go
new file mode 100644
index 0000000..50d3b2e
--- /dev/null
+++ b/button_string.go
@@ -0,0 +1,16 @@
+// Code generated by "stringer -type=Button"; DO NOT EDIT
+
+package redbutton
+
+import "fmt"
+
+const _Button_name = "UnknownClosedPressedArmed"
+
+var _Button_index = [...]uint8{0, 7, 13, 20, 25}
+
+func (i Button) String() string {
+ if i < 0 || i >= Button(len(_Button_index)-1) {
+ return fmt.Sprintf("Button(%d)", i)
+ }
+ return _Button_name[_Button_index[i]:_Button_index[i+1]]
+}