Datastore Key structs should be encoded to strings, similar to time.Time structs. In general it would be nice if this library had a way to insert information about custom serializations of specific types.
For now, in our repo, we have fixed this issue by vendoring and changing line 267 as follows:
} else if (t.PkgPath() == "time" && t.Name() == "Time") || ((t.PkgPath() == "google.golang.org/appengine/datastore" || t.PkgPath() == "cloud.google.com/go/datastore") && t.Name() == "Key") {
// timestamps are serialised to strings as are datastore keys.
Datastore
Key
structs should be encoded to strings, similar totime.Time
structs. In general it would be nice if this library had a way to insert information about custom serializations of specific types.For now, in our repo, we have fixed this issue by vendoring and changing line 267 as follows: