From a4a29d6025bd28f6ad7755e563e6e65aebb14703 Mon Sep 17 00:00:00 2001 From: Nguyen Dang Minh Date: Sat, 2 May 2015 16:19:54 +0700 Subject: [PATCH] Update README.md The line: // db := gorm.Open("postgres", dbSql) should be // db, _ := gorm.Open("postgres", dbSql) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6e929c4c..c4ff661d 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ db, err := gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable") // You can also use an existing database connection handle // dbSql, _ := sql.Open("postgres", "user=gorm dbname=gorm sslmode=disable") -// db := gorm.Open("postgres", dbSql) +// db, _ := gorm.Open("postgres", dbSql) // Get database connection handle [*sql.DB](http://golang.org/pkg/database/sql/#DB) db.DB()