Versions in this module Expand all Collapse all v1 v1.3.2 May 21, 2023 v1.3.1 May 21, 2023 v1.3.0 May 21, 2023 Changes in this version + const DateFormat + type Entry struct + Created time.Time + HideWebsite bool + ID int64 + Message string + Name string + Reply *Reply + Website string + func NewEntry(name, message, website string, hideWebsite bool) (*Entry, error) + type Guestbook interface + Close func() error + Count func() (int64, error) + DeleteEntry func(entryID int64) error + DeleteReply func(entryID int64) error + EditEntry func(entry *Entry) error + EditReply func(reply *Reply) error + Entries func(page, pageSize int64) ([]*Entry, error) + NewEntry func(entry *Entry) error + NewReply func(reply *Reply) error + func NewSQLiteDB(filePath string) (Guestbook, error) + type Reply struct + Created time.Time + ID int64 + Message string + func NewReply(entryID int64, message string) (*Reply, error) + type SQLiteDatabase struct + func (d *SQLiteDatabase) Close() error + func (d *SQLiteDatabase) Count() (count int64, err error) + func (d *SQLiteDatabase) DeleteEntry(entryID int64) error + func (d *SQLiteDatabase) DeleteReply(entryID int64) error + func (d *SQLiteDatabase) EditEntry(entry *Entry) error + func (d *SQLiteDatabase) EditReply(reply *Reply) error + func (d *SQLiteDatabase) Entries(page, pageSize int64) (entries []*Entry, err error) + func (d *SQLiteDatabase) NewEntry(entry *Entry) error + func (d *SQLiteDatabase) NewReply(reply *Reply) error v1.2.1 May 9, 2023 v1.2.0 May 9, 2023 v1.1.0 May 6, 2023 v1.0.2 Mar 11, 2023