MCPcopy Create free account
hub / github.com/bitfield/ftl-code / Book

Struct Book

17.2/bookstore.go:4–9  ·  view source on GitHub ↗

Book represents information about a book.

Source from the content-addressed store, hash-verified

2
3// Book represents information about a book.
4type Book struct {
5 Title string
6 Author string
7 Copies int
8 ID int
9}
10
11func GetAllBooks(catalog map[int]Book) []Book {
12 result := []Book{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected