Skip to content

Instantly share code, notes, and snippets.

@Cibernomadas Cibernomadas/database.go
Last active Jun 5, 2018

What would you like to do?
package database
import (
_ ""
var DB *gorm.DB
func Init() *gorm.DB {
db, err := gorm.Open("sqlite3", "./data/goblog.db")
if err != nil {
return db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.