Move Cake struct to separate models package

This commit is contained in:
bronku 2025-03-28 14:54:17 +01:00
parent e749e77a2a
commit 7ee564f6b2
7 changed files with 48 additions and 38 deletions

View file

@ -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 {