fastpastebin/database/exported.go

19 lines
303 B
Go
Raw Normal View History

2018-04-30 18:42:17 +05:00
package database
import (
// local
"github.com/pztrn/fastpastebin/context"
"github.com/pztrn/fastpastebin/database/interface"
)
var (
c *context.Context
d *Database
)
func New(cc *context.Context) {
c = cc
d = &Database{}
c.RegisterDatabaseInterface(databaseinterface.Interface(Handler{}))
}