From 1983457c6ef7af2552a0927510b9dff26fa31752 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Nieto?= <xiam@menteslibres.org>
Date: Tue, 10 Jul 2012 06:12:22 -0500
Subject: [PATCH] Using mgo 2.

---
 README.md    | 12 ++++++------
 db/README.md |  1 +
 db/mongo.go  |  4 ++--
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md
index 95985dd4..2f2dd9ae 100644
--- a/README.md
+++ b/README.md
@@ -4,17 +4,17 @@ gosexy is a general purpose framework for Go that provides sugar methods, types
 
 ## Installing gosexy
 
-Use the command line
+Before running this command, make sure you have the ``git``, ``hg`` (mercurial) and ``bzr`` (bazaar) source control systems installed on your system, those packages are available for many linux distros and also in [homebrew](http://mxcl.github.com/homebrew/) for OSX.
 
     $ go get github.com/xiam/gosexy
 
+## Sugar wrappers
+
+* [gosexy/db](https://github.com/xiam/gosexy/tree/master/db) - A wrapper of database/sql, mgo and friends for querying to MongoDB, MySQL, PostgreSQL or SQLite3 databases in a consistent way.
+* [gosexy/yaml](https://github.com/xiam/gosexy/tree/master/yaml) - A wrapper of [goyaml](http://launchpad.net/goyaml) for working with [YAML](http://www.yaml.org) formatted files.
+
 ## Sugar types
 
 ``Tuple`` is a shortcut for ``map[string]interface{}`` (generic dictionaries).
 
 ``List`` is a shortcut for ``[]interface{}`` (generic arrays).
-
-## Sugar abstractions
-
-* [gosexy/yaml](https://github.com/xiam/gosexy/tree/master/yaml) - A wrapper of [goyaml](http://launchpad.net/goyaml) for working with [YAML](http://www.yaml.org) formatted files.
-
diff --git a/db/README.md b/db/README.md
index c4d6876e..18ea1031 100644
--- a/db/README.md
+++ b/db/README.md
@@ -152,6 +152,7 @@ Return the first Item of the collection that matches all the provided conditions
 
 You can use relations in your definition
 
+  // Relations example.
   collection.FindAll(
     // One-to-one relation with the table "places".
     Relate{
diff --git a/db/mongo.go b/db/mongo.go
index cc137ce7..d18da2c7 100644
--- a/db/mongo.go
+++ b/db/mongo.go
@@ -26,8 +26,8 @@ package db
 import (
 	"fmt"
 	. "github.com/xiam/gosexy"
-	"launchpad.net/mgo"
-	"launchpad.net/mgo/bson"
+	"labix.org/v2/mgo"
+	"labix.org/v2/mgo/bson"
 	"net/url"
 	"reflect"
 	"regexp"
-- 
GitLab