diff --git a/README.md b/README.md index 95985dd4f5e0d992a80970d5a0c8ab9fa13385cd..2f2dd9aeb170726f28288fa26ea73b923c3a8090 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 c4d6876e72ee24e35087484d31f75b9f7ddc3036..18ea10312ca4cbf9a56d59533e1460136218393b 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 cc137ce7d9be766e8680c5203be7398b4f59d364..d18da2c7ee83676a4653b3b59ccc01ec96cb2eee 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"