Documentation ¶ Index ¶ Variables func CreateBooks() type Book func GetBookById(id string) (Book, error) Constants ¶ This section is empty. Variables ¶ View Source var Books []Book Functions ¶ func CreateBooks ¶ func CreateBooks() Types ¶ type Book ¶ type Book struct { ID string `json:"id"` Title string `json:"title"` Description string `json:"description"` Category string `json:"category"` Author string `json:"author"` } func GetBookById ¶ func GetBookById(id string) (Book, error) Source Files ¶ View all Source files book.go Click to show internal directories. Click to hide internal directories.