Move database code to store package
This commit is contained in:
parent
d1c393736a
commit
e75468ce55
7 changed files with 79 additions and 75 deletions
4
main.go
4
main.go
|
|
@ -6,7 +6,7 @@ import (
|
|||
"net/http"
|
||||
|
||||
"github.com/Bronku/iroon/auth"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"github.com/Bronku/iroon/store"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
@ -20,7 +20,7 @@ func main() {
|
|||
log.Fatal("can't parse templates: ", err)
|
||||
}
|
||||
|
||||
h.s, err = openStore("./foo.db")
|
||||
h.s, err = store.OpenStore("./foo.db")
|
||||
if err != nil {
|
||||
log.Fatal("can't open the databse", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue