Permalink
Browse files

add mongo.EmptyObject

  • Loading branch information...
mikejs committed Nov 22, 2009
1 parent 5c5404b commit 8cdabecf3fdcbffa24823b3f2b93cb40fd3c1c33
Showing with 2 additions and 0 deletions.
  1. +2 −0 bson.go
View
@@ -146,6 +146,8 @@ func (o *_Object) Bytes() []byte {
return bytes.Add(b, buf.Bytes());
}
+var EmptyObject BSON = &_Object{map[string]BSON{}, _Null{}}
+
type _Array struct {
value *vector.Vector;
_Null;

0 comments on commit 8cdabec

Please sign in to comment.