Book represents information about a book.
| 4 | |
| 5 | // Book represents information about a book. |
| 6 | type Book struct { |
| 7 | Title string |
| 8 | Author string |
| 9 | Copies int |
| 10 | ID int |
| 11 | PriceCents int |
| 12 | DiscountPercent int |
| 13 | category string |
| 14 | } |
| 15 | |
| 16 | func (b *Book) SetCategory(category string) error { |
| 17 | if category != "Autobiography" { |
nothing calls this directly
no outgoing calls
no test coverage detected