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

Unified Diff: service/datastore/propertytype_string.go

Issue 1354343002: service/datastore: misc improvements in properties.go (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Created 5 years, 3 months 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
« service/datastore/properties.go ('K') | « service/datastore/properties.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/propertytype_string.go
diff --git a/service/datastore/propertytype_string.go b/service/datastore/propertytype_string.go
new file mode 100644
index 0000000000000000000000000000000000000000..1bf9877784e44efb836b1597ebe09dd638c09432
--- /dev/null
+++ b/service/datastore/propertytype_string.go
@@ -0,0 +1,16 @@
+// generated by stringer -type=PropertyType; DO NOT EDIT
+
+package datastore
+
+import "fmt"
+
+const _PropertyType_name = "PTNullPTIntPTTimePTBoolPTBytesPTStringPTFloatPTGeoPointPTKeyPTBlobKeyPTUnknown"
+
+var _PropertyType_index = [...]uint8{0, 6, 11, 17, 23, 30, 38, 45, 55, 60, 69, 78}
+
+func (i PropertyType) String() string {
+ if i >= PropertyType(len(_PropertyType_index)-1) {
+ return fmt.Sprintf("PropertyType(%d)", i)
+ }
+ return _PropertyType_name[_PropertyType_index[i]:_PropertyType_index[i+1]]
+}
« service/datastore/properties.go ('K') | « service/datastore/properties.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698