Documentation
¶
Overview ¶
Package book contains shared book structures
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Book ¶
type Book struct { Header Description string DeweyDecClass string Pages int Publisher string PublishDate time.Time AddedDate time.Time EanIsbn13 string UpcIsbn10 string ImageBase64 string }
Book contains common book fields
type DateLayout ¶
type DateLayout string
const ( HyphenatedYYYYMMDD DateLayout = "2006-01-02" SlashMMDDYYYY DateLayout = "01/02/2006" )
type Filter ¶
Filter is used to match books weth the exact subject (if set) or a whole word match to any of the header parts.
type StringBook ¶
type StringBook struct { ID string Title string Author string Subject string Description string DeweyDecClass string Pages string Publisher string PublishDate string AddedDate string EanIsbn13 string UpcIsbn10 string ImageBase64 string }
func (StringBook) Book ¶
func (sb StringBook) Book(dateLayout DateLayout) (*Book, error)
Click to show internal directories.
Click to hide internal directories.