Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + func ExtractID(rawURL string) int + type Book struct + Authors []string + ID int + ISBN string + Name string + Pages int + Publisher string + Released string + URL string + type Character struct + Aliases []string + Born string + Culture string + Died string + Gender string + ID int + Name string + PlayedBy []string + Titles []string + TvSeries []string + URL string + type Client struct + func NewClient(cfg Config) *Client + func (c *Client) GetBook(ctx context.Context, id int) (*Book, error) + func (c *Client) GetCharacter(ctx context.Context, id int) (*Character, error) + func (c *Client) GetHouse(ctx context.Context, id int) (*House, error) + func (c *Client) ListBooks(ctx context.Context, limit int) ([]Book, error) + func (c *Client) ListCharacters(ctx context.Context, name string, limit int) ([]Character, error) + func (c *Client) ListHouses(ctx context.Context, name string, limit int) ([]House, error) + type Config struct + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Domain struct + func (Domain) Classify(input string) (string, string, error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(t, id string) (string, error) + func (Domain) Register(app *kit.App) + type House struct + CoatOfArms string + CurrentLord string + ID int + Name string + Region string + Seat string + URL string + Words string