我通过mgo homepage上的示例工作,但我正在努力寻找一种方法来查询一系列值。 line67: syntax error: unexpected $ line67: missing type in composite literal 我离开了代码的非必需位... type Reading struct {
K string "k"
T int64 "t"
V f
我有以下代码,我不确定它为什么不返回一片Notes。我正在使用来自labix.org的mgo库连接到MongoDB并遵循他们的在线文档。 type Note struct {
Url string
Title string
Date string
Body string
}
func loadNotes() ([]Note) {
sessio