book

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL