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

Unified Diff: service/rawdatastore/reflect.go

Issue 1243323002: Refactor a bit. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: fix golint Created 5 years, 5 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
« no previous file with comments | « service/rawdatastore/properties_test.go ('k') | service/rawdatastore/serialize.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/rawdatastore/reflect.go
diff --git a/service/rawdatastore/reflect.go b/service/rawdatastore/reflect.go
new file mode 100644
index 0000000000000000000000000000000000000000..040d63e4a8acf496ddb4235cbfe7411694495921
--- /dev/null
+++ b/service/rawdatastore/reflect.go
@@ -0,0 +1,27 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package rawdatastore
+
+import (
+ "reflect"
+ "time"
+
+ "github.com/luci/gae/service/blobstore"
+)
+
+var (
+ typeOfBool = reflect.TypeOf(false)
+ typeOfBSKey = reflect.TypeOf(blobstore.Key(""))
+ typeOfByteSlice = reflect.TypeOf([]byte(nil))
+ typeOfByteString = reflect.TypeOf(ByteString(nil))
+ typeOfKey = reflect.TypeOf((*Key)(nil)).Elem()
+ typeOfPropertyConverter = reflect.TypeOf((*PropertyConverter)(nil)).Elem()
+ typeOfFloat64 = reflect.TypeOf(float64(0))
+ typeOfGeoPoint = reflect.TypeOf(GeoPoint{})
+ typeOfInt64 = reflect.TypeOf(int64(0))
+ typeOfString = reflect.TypeOf("")
+ typeOfTime = reflect.TypeOf(time.Time{})
+ valueOfnilDSKey = reflect.Zero(typeOfKey)
+)
« no previous file with comments | « service/rawdatastore/properties_test.go ('k') | service/rawdatastore/serialize.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698