From e0a7c13ef5fbd76e53710fc27eeef90c89611016 Mon Sep 17 00:00:00 2001 From: Guan Ce Date: Sun, 13 Jul 2014 17:05:04 +0800 Subject: [PATCH] add comment on creating a global DB variable //Pls note that it's "=" rather than ":=" DB, err = gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable") --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 58510925..3199542b 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,7 @@ import ( var DB gorm.DB func init() { var err error + //Pls note that it's "=" rather than ":=" DB, err = gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable") // Connection string parameters for Postgres - http://godoc.org/github.com/lib/pq, if you are using another