| Index: service/datastore/properties.go
|
| diff --git a/service/datastore/properties.go b/service/datastore/properties.go
|
| index 3a9e7e510cb8d1b641b6789f144dc46c81266ffa..2808c3804702d400198792664ac025441fe2a3da 100644
|
| --- a/service/datastore/properties.go
|
| +++ b/service/datastore/properties.go
|
| @@ -336,6 +336,17 @@ func UpconvertUnderlyingType(o interface{}) interface{} {
|
| return o
|
| }
|
|
|
| +func (p Property) String() string {
|
| + switch p.propType {
|
| + case PTString, PTBlobKey:
|
| + return fmt.Sprintf("%s(%q)", p.propType, p.Value())
|
| + case PTBytes:
|
| + return fmt.Sprintf("%s(%#x)", p.propType, p.Value())
|
| + default:
|
| + return fmt.Sprintf("%s(%v)", p.propType, p.Value())
|
| + }
|
| +}
|
| +
|
| // Value returns the current value held by this property. It's guaranteed to
|
| // be a valid value type (i.e. `p.SetValue(p.Value(), true)` will never return
|
| // an error).
|
|
|