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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « service/rawdatastore/properties_test.go ('k') | service/rawdatastore/serialize.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package rawdatastore
6
7 import (
8 "reflect"
9 "time"
10
11 "github.com/luci/gae/service/blobstore"
12 )
13
14 var (
15 typeOfBool = reflect.TypeOf(false)
16 typeOfBSKey = reflect.TypeOf(blobstore.Key(""))
17 typeOfByteSlice = reflect.TypeOf([]byte(nil))
18 typeOfByteString = reflect.TypeOf(ByteString(nil))
19 typeOfKey = reflect.TypeOf((*Key)(nil)).Elem()
20 typeOfPropertyConverter = reflect.TypeOf((*PropertyConverter)(nil)).Elem ()
21 typeOfFloat64 = reflect.TypeOf(float64(0))
22 typeOfGeoPoint = reflect.TypeOf(GeoPoint{})
23 typeOfInt64 = reflect.TypeOf(int64(0))
24 typeOfString = reflect.TypeOf("")
25 typeOfTime = reflect.TypeOf(time.Time{})
26 valueOfnilDSKey = reflect.Zero(typeOfKey)
27 )
OLDNEW
« 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