From 5de6416354307d36ddce142e7d561d87f56207c1 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Mon, 28 Oct 2013 12:46:50 +0800 Subject: [PATCH] Clean up dependencies --- gorm_test.go | 2 ++ main.go | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gorm_test.go b/gorm_test.go index ddc1b81a..503f08e0 100644 --- a/gorm_test.go +++ b/gorm_test.go @@ -1,6 +1,8 @@ package gorm import ( + _ "github.com/lib/pq" + "errors" "reflect" "strconv" diff --git a/main.go b/main.go index 0f8d658b..6d4f1870 100644 --- a/main.go +++ b/main.go @@ -1,9 +1,6 @@ package gorm -import ( - "database/sql" - _ "github.com/lib/pq" -) +import "database/sql" type DB struct { Db *sql.DB @@ -13,7 +10,6 @@ type DB struct { func Open(driver, source string) (db DB, err error) { db.Db, err = sql.Open(driver, source) db.Driver = driver - // SetMaxIdleConns pools return }