golang interface{}類型轉換 bson.M 遇到莫名其妙的問題

背景 從mongo數據庫中取出數據以interface{}格式返回,解析返回的數據。 1.從mongo中取數據golang newSession := m.Session.Copy() defer newSession.Close() c := newSession.DB(database).C(collName) if err := c.Find(bson.M{"time": occurtime
相關文章
相關標籤/搜索