1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package storage import ( "sync" "tildegit.org/andinus/perseus/storage/sqlite3" ) // Init initializes the database. func Init() *sqlite3.DB { var db sqlite3.DB = sqlite3.DB{ Mu: new(sync.RWMutex), } sqlite3.Init(&db) return &db }