Documentation ¶
Index ¶
Constants ¶
View Source
const Baseurl = "https://ws-tcg.com/cardlist/search"
Baseurl base url
View Source
const CardModelVersion = "3"
CardModelVersion : Card format version
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func IsbaseRarity ¶
IsbaseRarity check if a card is a C / U / R / RR
Types ¶
type Card ¶
type Card struct { Set string `json:"set"` SetName string `json:"setName"` Side string `json:"side"` Release string `json:"release"` ID string `json:"id"` Name string `json:"name"` JpName string `json:"jpName"` CardType string `json:"cardType"` Colour string `json:"colour"` Level string `json:"level"` Cost string `json:"cost"` Power string `json:"power"` Soul string `json:"soul"` Rarity string `json:"rarity"` BreakDeckbuilding bool `json:"breakDeckbuilding"` ENEquivalent bool `json:"EN_Equivalent"` FlavourText string `json:"flavourText"` Trigger []string `json:"trigger"` Ability []string `json:"ability"` SpecialAttrib []string `json:"specialAttrib"` Version string `json:"version"` Cardcode string `json:"cardcode"` ImageURL string `json:"imageURL"` Tags []string `json:"tags"` }
Card info to export
func ExtractData ¶
ExtractData extract data to card
Click to show internal directories.
Click to hide internal directories.