Versions in this module Expand all Collapse all v1 v1.2.5 Sep 22, 2025 v1.2.4 Jun 19, 2025 Changes in this version + func NewController(logger *log.Logger) *server + func NewControllerWithBooks(logger *log.Logger, data []*Book) *server + type Address struct + City string + CountryCode string + PostalCode string + State string + Street string + type Author struct + ID string + Name string + type Book struct + Author *Author + ID string + Pages int + PublishedOn string + Publisher *Publisher + Title string + func (b *Book) CategoryByLength() string + type CreateBookRequest struct + AuthorID string + Pages int + PublishedOn string + PublisherID string + Title string + type ListBooksResponse struct + Books []*Book + type Publisher struct + Address *Address + ID string + Name string + type ReplaceBookRequest struct + AuthorID string + ID string + Pages int + PublishedOn string + PublisherID string + Title string + type ReplaceBooksRequest []*ReplaceBookRequest