Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions datastore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ func Get(c context.Context, key *Key, dst interface{}) error {
// As a special case, PropertyList is an invalid type for dst, even though a
// PropertyList is a slice of structs. It is treated as invalid to avoid being
// mistakenly passed when []PropertyList was intended.
//
// If any entity cannot be retrieved, GetMulti returns a MultiError. However,
// successfully retrieved entities are still loaded into the corresponding dst elements,
// even if a MultiError is returned.
func GetMulti(c context.Context, key []*Key, dst interface{}) error {
v := reflect.ValueOf(dst)
multiArgType, _ := checkMultiArg(v)
Expand Down
4 changes: 4 additions & 0 deletions v2/datastore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ func Get(c context.Context, key *Key, dst interface{}) error {
// As a special case, PropertyList is an invalid type for dst, even though a
// PropertyList is a slice of structs. It is treated as invalid to avoid being
// mistakenly passed when []PropertyList was intended.
//
// If any entity cannot be retrieved, GetMulti returns a MultiError. However,
// successfully retrieved entities are still loaded into the corresponding dst elements,
// even if a MultiError is returned.
func GetMulti(c context.Context, key []*Key, dst interface{}) error {
v := reflect.ValueOf(dst)
multiArgType, _ := checkMultiArg(v)
Expand Down