From bea8df31cbed2d3c3a01d8e883868e6d1b73d6f9 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 6 May 2023 22:19:04 +0400 Subject: [PATCH] Return Guestbook interface instead of SQLiteDatabase instance. --- database/sqlite/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/sqlite/database.go b/database/sqlite/database.go index ee0c551..efe1451 100644 --- a/database/sqlite/database.go +++ b/database/sqlite/database.go @@ -100,7 +100,7 @@ type SQLiteDatabase struct { db *sql.DB } -func New(filePath string) (*SQLiteDatabase, error) { +func New(filePath string) (guestbook.Guestbook, error) { db, err := sql.Open("sqlite3", dsn(filePath)) if err != nil { return nil, err