OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package datastore | 5 package datastore |
6 | 6 |
7 import ( | 7 import ( |
8 "reflect" | 8 "reflect" |
9 "time" | 9 "time" |
10 | 10 |
11 "github.com/luci/gae/service/blobstore" | 11 "github.com/luci/gae/service/blobstore" |
12 ) | 12 ) |
13 | 13 |
14 var ( | 14 var ( |
15 typeOfBool = reflect.TypeOf(false) | 15 typeOfBool = reflect.TypeOf(false) |
16 typeOfToggle = reflect.TypeOf(Auto) | |
17 typeOfBSKey = reflect.TypeOf(blobstore.Key("")) | 16 typeOfBSKey = reflect.TypeOf(blobstore.Key("")) |
18 typeOfByteSlice = reflect.TypeOf([]byte(nil)) | 17 typeOfByteSlice = reflect.TypeOf([]byte(nil)) |
19 typeOfByteString = reflect.TypeOf(ByteString(nil)) | 18 typeOfByteString = reflect.TypeOf(ByteString(nil)) |
20 typeOfFloat64 = reflect.TypeOf(float64(0)) | 19 typeOfFloat64 = reflect.TypeOf(float64(0)) |
21 typeOfGeoPoint = reflect.TypeOf(GeoPoint{}) | 20 typeOfGeoPoint = reflect.TypeOf(GeoPoint{}) |
22 typeOfInt64 = reflect.TypeOf(int64(0)) | 21 typeOfInt64 = reflect.TypeOf(int64(0)) |
23 typeOfKey = reflect.TypeOf((*Key)(nil)).Elem() | 22 typeOfKey = reflect.TypeOf((*Key)(nil)).Elem() |
24 typeOfPropertyConverter = reflect.TypeOf((*PropertyConverter)(nil)).Elem
() | 23 typeOfPropertyConverter = reflect.TypeOf((*PropertyConverter)(nil)).Elem
() |
| 24 typeOfPropertyLoadSaver = reflect.TypeOf((*PropertyLoadSaver)(nil)).Elem
() |
25 typeOfString = reflect.TypeOf("") | 25 typeOfString = reflect.TypeOf("") |
26 typeOfTime = reflect.TypeOf(time.Time{}) | 26 typeOfTime = reflect.TypeOf(time.Time{}) |
| 27 typeOfToggle = reflect.TypeOf(Auto) |
27 valueOfnilDSKey = reflect.Zero(typeOfKey) | 28 valueOfnilDSKey = reflect.Zero(typeOfKey) |
28 ) | 29 ) |
OLD | NEW |