Slide 20
Slide 20 text
εέʔϥϏϦςΟ - ӬଓԽ
20
• ϝοηʔδͷऔಘ
key := datastore.NewKey(c, "Message", "", id, nil)
if err := datastore.Get(c, key, &msg); err != nil {
return nil, err
}
q := datastore.NewQuery("Message")
q = q.Filter("SenderId =", senderId).Order("-CreatedTime").Limit(10)
var msgs []Message
_, err := q.GetAll(c, &msgs)
• ΫΤϦ