Documentation
¶
Index ¶
Constants ¶
View Source
const ( LayoutAftermath = "aftermath" LayoutFlip = "flip" LayoutMeld = "meld" LayoutNormal = "normal" LayoutSplit = "split" LayoutTransform = "transform" FinishNonfoil = "nonfoil" FinishFoil = "foil" FinishEtched = "etched" FrameEffectExtendedArt = "extendedart" FrameEffectEtched = "etched" FrameEffectInverted = "inverted" FrameEffectShowcase = "showcase" FrameEffectShattered = "shatteredglass" PromoTypeBundle = "bundle" PromoTypeBuyABox = "buyabox" PromoTypeGameDay = "gameday" PromoTypeIntroPack = "intropack" PromoTypePrerelease = "prerelease" PromoTypePromoPack = "promopack" PromoTypeRelease = "release" PromoTypeBoosterfun = "boosterfun" PromoTypeGodzilla = "godzillaseries" PromoTypeDracula = "draculaseries" PromoTypePlayPromo = "playpromo" PromoTypeWPN = "wizardsplaynetwork" PromoTypeGilded = "gilded" PromoTypeTextured = "textured" PromoTypeNeonInk = "neonink" PromoTypeGalaxyFoil = "galaxyfoil" PromoTypeSurgeFoil = "surgefoil" PromoTypeGlossy = "glossy" PromoTypeAmpersand = "ampersand" PromoTypeSerialized = "serialized" PromoTypeHaloFoil = "halofoil" PromoTypeStepAndCompleat = "stepandcompleat" PromoTypeOilSlick = "oilslick" PromoTypeConcept = "concept" PromoTypeThickDisplay = "thick" PromoTypeJudgeGift = "judgegift" PromoTypeArenaLeague = "arenaleague" PromoTypePlayerRewards = "playerrewards" PromoTypeStarterDeck = "starterdeck" PromoTypeSChineseAltArt = "schinesealtart" BorderColorBorderless = "borderless" BorderColorGold = "gold" LanguageJapanese = "Japanese" LanguagePhyrexian = "Phyrexian" SuffixSpecial = "★" SuffixVariant = "†" )
Variables ¶
View Source
var AllPromoTypes = []string{ PromoTypeAmpersand, PromoTypeArenaLeague, PromoTypeBoosterfun, PromoTypeBundle, PromoTypeBuyABox, PromoTypeConcept, PromoTypeDracula, PromoTypeGalaxyFoil, PromoTypeGameDay, PromoTypeGilded, PromoTypeGlossy, PromoTypeGodzilla, PromoTypeHaloFoil, PromoTypeIntroPack, PromoTypeJudgeGift, PromoTypeNeonInk, PromoTypeOilSlick, PromoTypePlayPromo, PromoTypePlayerRewards, PromoTypePrerelease, PromoTypePromoPack, PromoTypeRelease, PromoTypeSChineseAltArt, PromoTypeSerialized, PromoTypeStarterDeck, PromoTypeStepAndCompleat, PromoTypeSurgeFoil, PromoTypeTextured, PromoTypeThickDisplay, PromoTypeWPN, }
Functions ¶
This section is empty.
Types ¶
type AllPrintings ¶
type AllPrintings struct { Data map[string]*Set `json:"data"` Meta struct { Date string `json:"date"` Version string `json:"version"` } `json:"meta"` }
func LoadAllPrintings ¶
func LoadAllPrintings(r io.Reader) (payload AllPrintings, err error)
type AllTCGSkus ¶
type AllTCGSkus struct { Data map[string][]TCGSku `json:"data"` Meta struct { Date string `json:"date"` Version string `json:"version"` } `json:"meta"` }
func LoadAllTCGSkus ¶
func LoadAllTCGSkus(r io.Reader) (payload AllTCGSkus, err error)
type Card ¶
type Card struct { Artist string `json:"artist"` AttractionLights []int `json:"attractionLights,omitempty"` BorderColor string `json:"borderColor"` Colors []string `json:"colors"` ColorIdentity []string `json:"colorIdentity"` FaceName string `json:"faceName"` FaceFlavorName string `json:"faceFlavorName"` Finishes []string `json:"finishes"` FlavorName string `json:"flavorName"` FlavorText string `json:"flavorText"` ForeignData []struct { Language string `json:"language"` } `json:"foreignData"` FrameEffects []string `json:"frameEffects"` FrameVersion string `json:"frameVersion"` Identifiers map[string]string `json:"identifiers"` IsAlternative bool `json:"isAlternative"` IsFullArt bool `json:"isFullArt"` IsFunny bool `json:"isFunny"` IsOnlineOnly bool `json:"isOnlineOnly"` IsOversized bool `json:"isOversized"` IsPromo bool `json:"isPromo"` IsReserved bool `json:"isReserved"` Language string `json:"language"` Layout string `json:"layout"` Name string `json:"name"` Number string `json:"number"` OriginalReleaseDate string `json:"originalReleaseDate"` Printings []string `json:"printings"` PromoTypes []string `json:"promoTypes"` Rarity string `json:"rarity"` SetCode string `json:"setCode"` Side string `json:"side"` Subsets []string `json:"subsets"` Types []string `json:"types"` Subtypes []string `json:"subtypes"` Supertypes []string `json:"supertypes"` UUID string `json:"uuid"` Variations []string `json:"variations"` Watermark string `json:"watermark"` }
func (*Card) HasFrameEffect ¶
func (*Card) HasPromoType ¶
func (*Card) IsDFCSameName ¶
Check if a dual-faced card has the same for both faces
func (*Card) IsPlaneswalker ¶
type Set ¶
type Set struct { BaseSetSize int `json:"baseSetSize"` Code string `json:"code"` Cards []Card `json:"cards"` IsFoilOnly bool `json:"isFoilOnly"` IsNonFoilOnly bool `json:"isNonFoilOnly"` IsOnlineOnly bool `json:"isOnlineOnly"` KeyruneCode string `json:"keyruneCode"` Name string `json:"name"` ParentCode string `json:"parentCode"` ReleaseDate string `json:"releaseDate"` Tokens []Card `json:"tokens"` Type string `json:"type"` TCGPlayerGroupId int `json:"tcgplayerGroupId"` Booster map[string]Booster `json:"booster"` SealedProduct []struct { Category string `json:"category"` Contents map[string][]struct { Code string `json:"code"` Configs []struct { Deck []struct { Name string `json:"name"` Set string `json:"set"` } `json:"deck"` } `json:"configs"` Count int `json:"count"` Foil bool `json:"foil"` Name string `json:"name"` Set string `json:"set"` UUID string `json:"uuid"` } `json:"contents"` Identifiers map[string]string `json:"identifiers"` Name string `json:"name"` ProductSize int `json:"productSize"` Subtype string `json:"subtype"` UUID string `json:"uuid"` } `json:"sealedProduct"` Decks []struct { Cards []struct { Count int `json:"count"` Finish string `json:"finish"` UUID string `json:"uuid"` } `json:"cards"` Name string `json:"name"` SealedProductUuids []string `json:"sealedProductUuids"` } `json:"decks"` }
Click to show internal directories.
Click to hide internal directories.