Skip to content

Commit be568cb

Browse files
committed
do some cleanup
1 parent 0604cdf commit be568cb

13 files changed

+23
-51
lines changed

AUTHORS

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
# This is the official list of 'gomongo' authors for copyright purposes.
1+
Author
2+
======
23

3-
# Names should be added to this file as
4-
# Name or Organization <email address>
5-
# The email address is not required for organizations.
4+
Michael Stephens <[email protected]>
65

7-
# Please keep the list sorted.
8-
9-
# Creator
10-
# =======
11-
12-
Michael Stephens <[email protected]>
13-
14-
# Contributors
15-
# ============
6+
Contributors
7+
============
168

179
1810

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
New BSD License
1+
Copyright (c) 2011 The gomongo Authors. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without
44
modification, are permitted provided that the following conditions

README README.rst

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
=======
22
gomongo
33
=======
4-
Go driver for `MongoDB`_, a document based database which is being used in
5-
`production`_ with great success.
6-
7-
Read this `article` to know more.
8-
9-
10-
.. _MongoDB: http://www.mongodb.org/
11-
.. _production: http://www.mongodb.org/display/DOCS/Production+Deployments
12-
.. _article: http://go.hokapoka.com/golang/mongodb-golang-gomongo/
134

5+
Go driver for `mongodb <http://www.mongodb.org/>`_.
146

157
Installation
168
============
17-
The easiest way to install it's through `goinstall` which automatically installs
18-
the third libraries::
9+
10+
The easiest way to install is through `goinstall`, which will automaticall
11+
install dependencies::
1912

2013
$ [sudo -E] goinstall github.com/mikejs/gomongo/mongo
2114

2215
Example usage
2316
-------------
2417

18+
::
19+
2520
package main
2621

2722
import "github.com/mikejs/gomongo/mongo"

mongo/all_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The 'gomongo' Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

@@ -264,4 +264,3 @@ func singleInsertLarge(coll *Collection, t *testing.T) {
264264
}
265265
}
266266
}
267-

mongo/bson-struct.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Based on the Go json package.
22

33
// Copyright 2009 The Go Authors. All rights reserved.
4-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
4+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
55
// Use of this source code is governed by the 3-clause BSD License
66
// that can be found in the LICENSE and LICENSE.GO files.
77

@@ -330,4 +330,3 @@ func Marshal(val interface{}) (BSON, os.Error) {
330330

331331
return nil, nil
332332
}
333-

mongo/bson.go

-1
Original file line numberDiff line numberDiff line change
@@ -506,4 +506,3 @@ func Parse(buf *bytes.Buffer, builder Builder) (err os.Error) {
506506

507507
return
508508
}
509-

mongo/bson_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

@@ -60,7 +60,7 @@ func TestUnmarshal(t *testing.T) {
6060
}
6161

6262
func TestIdHandling(t *testing.T) {
63-
ei := ExampleWithId{Id_:"fooid", Other: "bar"}
63+
ei := ExampleWithId{Id_: "fooid", Other: "bar"}
6464
// verify Id_ gets turned into _id
6565
parsed, err := Marshal(ei)
6666
assertTrue(err == nil, "cannot marshal", t)
@@ -100,4 +100,3 @@ func TestMarshal(t *testing.T) {
100100
Unmarshal(bs2.Bytes(), es2)
101101
assertTrue(es2.Date.Seconds() == d.Seconds(), "date unmarshal", t)
102102
}
103-

mongo/collection.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

@@ -197,7 +197,7 @@ func (self *Collection) DropIndexes() os.Error {
197197
func (self *Collection) DropIndex(name string) os.Error {
198198
cmdm := map[string]string{
199199
"deleteIndexes": self.fullName(),
200-
"index": name,
200+
"index": name,
201201
}
202202

203203
cmd, err := Marshal(cmdm)
@@ -208,4 +208,3 @@ func (self *Collection) DropIndex(name string) os.Error {
208208
_, err = self.db.Command(cmd)
209209
return err
210210
}
211-

mongo/connection.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

@@ -79,4 +79,3 @@ func (self *Connection) readReply() (*opReply, os.Error) {
7979

8080
return reply, nil
8181
}
82-

mongo/cursor.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

@@ -83,4 +83,3 @@ func (self *Cursor) Close() os.Error {
8383
msg := &opKillCursors{1, []int64{self.id}}
8484
return self.collection.db.Conn.sendMessage(msg)
8585
}
86-

mongo/database.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

@@ -51,4 +51,3 @@ func (self *Database) Command(cmd BSON) (BSON, os.Error) {
5151
func (self *Database) GetCollectionNames() *vector.StringVector {
5252
return new(vector.StringVector)
5353
}
54-

mongo/main.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
// Copyright 2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

5-
// Note that Go's cryptography library is copyrighted by an USA company,
6-
// so it's liable to cryptography regulations from USA.
7-
// That viral law affects to any program where it's being used,
8-
// so it can not be used in some third countries (where USA say you).
9-
105
package mongo
116

127
import (
@@ -73,4 +68,3 @@ func setBit32(num *int32, position ...byte) {
7368
*num |= MASK << pos
7469
}
7570
}
76-

mongo/message.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2009,2010, The 'gomongo' Authors. All rights reserved.
1+
// Copyright 2009-2011 The gomongo Authors. All rights reserved.
22
// Use of this source code is governed by the 3-clause BSD License
33
// that can be found in the LICENSE file.
44

@@ -316,4 +316,3 @@ func parseReply(b []byte) *opReply {
316316

317317
return r
318318
}
319-

0 commit comments

Comments
 (0)