Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶
This encodes it as bson as an intermediate step to take advantage of the `inline` tag to support arbirtary fields. This can be used as an alternate to `json.Marshal`. See: http://godoc.org/labix.org/v2/mgo/bson#Marshal
func UnmarshalJSON ¶
This decodes it as json into an intermediate map, encodes it into BSON, the decodes it back into the store. This take advantages of the `inline` tag to support arbirtary fields. This can be used as an alternate to `json.Unmarshal` See: http://godoc.org/labix.org/v2/mgo/bson#Marshal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.