From 5a02c2ec2720d57891a1202d558d25bf9e049a05 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Fri, 15 Nov 2013 17:37:21 +0800 Subject: [PATCH] Update README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index a2554521..f6875f59 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ package db var DB gorm.DB func init() { + var err error DB, err = gorm.Open("postgres", "user=gorm dbname=gorm sslmode=disable") if err != nil { panic(fmt.Sprintf("Got error when connect database, the error is '%v'", err))