1
0
Fork 0

Return Guestbook interface instead of SQLiteDatabase instance.

This commit is contained in:
Alexander Andreev 2023-05-06 22:19:04 +04:00
parent f602dddff3
commit bea8df31cb
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 1 additions and 1 deletions

View File

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