Move Cake struct to separate models package
This commit is contained in:
parent
e749e77a2a
commit
7ee564f6b2
7 changed files with 48 additions and 38 deletions
|
|
@ -4,12 +4,13 @@ import (
|
|||
"database/sql"
|
||||
"log"
|
||||
|
||||
"github.com/Bronku/iroon/internal/models"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
type Store struct {
|
||||
db *sql.DB
|
||||
cakes []Cake
|
||||
cakes []models.Cake
|
||||
}
|
||||
|
||||
func OpenStore(filename string) *Store {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue