Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Unified Diff: service/datastore/toggle_string.go

Issue 1521823003: Clean up callback interfaces. (Closed) Base URL: https://github.com/luci/gae.git@extra
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: service/datastore/toggle_string.go
diff --git a/service/datastore/toggle_string.go b/service/datastore/toggle_string.go
new file mode 100644
index 0000000000000000000000000000000000000000..5c99ab4b73c0d559e7811e8a82be5e18bc29a58e
--- /dev/null
+++ b/service/datastore/toggle_string.go
@@ -0,0 +1,16 @@
+// Code generated by "stringer -type=Toggle"; DO NOT EDIT
+
+package datastore
+
+import "fmt"
+
+const _Toggle_name = "AutoOnOff"
+
+var _Toggle_index = [...]uint8{0, 4, 6, 9}
+
+func (i Toggle) String() string {
+ if i >= Toggle(len(_Toggle_index)-1) {
+ return fmt.Sprintf("Toggle(%d)", i)
+ }
+ return _Toggle_name[_Toggle_index[i]:_Toggle_index[i+1]]
+}

Powered by Google App Engine
This is Rietveld 408576698