Update README

This commit is contained in:
Jinzhu 2013-11-15 17:37:21 +08:00
parent 4e1e2a0fbb
commit 5a02c2ec27
1 changed files with 1 additions and 0 deletions

View File

@ -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))