Documentation ¶
Index ¶
Constants ¶
View Source
const ( // CollectionName is the book collection name. CollectionName = "books" // SampleBookNumOfPages is the number of pages in the sample book. SampleBookNumOfPages = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { BookID string `json:"book_id" firestore:"book_id"` Name string `json:"name" firestore:"name"` Author string `json:"author" firestore:"author"` Published time.Time `json:"published" firestore:"published"` Pages int `json:"pages" firestore:"pages"` HardCover bool `json:"hardcover" firestore:"hardcover"` }
Book represents a simple book document.
Click to show internal directories.
Click to hide internal directories.