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 + type Card struct + CMC float64 + Colors []string + ID string + ManaCost string + Name string + OracleText string + Power string + Prices Prices + Rarity string + ReleasedAt string + ScryfallURL string + SetCode string + SetName string + Toughness string + TypeLine string + type Client struct + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func (c *Client) Get(ctx context.Context, url string) ([]byte, error) + func (c *Client) GetCardByName(ctx context.Context, name string) (*Card, error) + func (c *Client) GetRandomCard(ctx context.Context) (*Card, error) + func (c *Client) ListSets(ctx context.Context, limit int) ([]Set, error) + func (c *Client) SearchCards(ctx context.Context, query string, limit int) ([]Card, error) + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type Prices struct + EUR string + USD string + USDFoil string + type Set struct + CardCount int + Code string + Name string + ReleasedAt string + SetType string