Categories
Mastering Development

How do I use bson.SetBSON or bson.Raw?

Possibly related: How to use interface type as a model in mgo (Go)? I have a struct like so: type Game struct { ID bson.ObjectId Type string Location string Details interface{} } type FeudDetails struct { … } type TriviaDetails struct { … } type BingoDetails struct { … } I want to use the […]