cmd

package
v0.0.0-...-e4dda32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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

func IsbaseRarity(card Card) bool

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

func ExtractData(mainHTML *goquery.Selection) Card

ExtractData extract data to card

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL