package models import "github.com/jinzhu/gorm" var db *gorm.DB func SetDB(h *gorm.DB) { db = h } func GetDB() *gorm.DB { return db }