Versions in this module Expand all Collapse all v1 v1.1.1 Aug 18, 2022 Changes in this version + var ErrNotFoundID = errors.New("db: could not find ID") + type DB struct + DataSourceName string + DriverName string + func (dbInfo DB) InitDB() error + func (dbInfo DB) PasteAdd(paste Paste) (string, error) + func (dbInfo DB) PasteDelete(id string) error + func (dbInfo DB) PasteDeleteExpired() (int64, error) + func (dbInfo DB) PasteGet(id string) (Paste, error) + type Paste struct + Author string + AuthorEmail string + AuthorURL string + Body string + CreateTime int64 + DeleteTime int64 + ID string + OneUse bool + Syntax string + Title string