Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallCardData ¶
func CardCommand ¶
Types ¶
type CardsModel ¶
type CardsModel struct {
Choice string
IllustratorMap map[string]string
ImageMap map[string]string
PriceMap map[string]string
RegulationMarkMap map[string]string
Quitting bool
SelectedOption string
SeriesName string
Table table.Model
ViewImage bool
}
func CardsList ¶
func CardsList(setID string) (CardsModel, error)
CardsList creates and returns a new CardsModel with cards from a specific set
func (CardsModel) Init ¶
func (m CardsModel) Init() tea.Cmd
func (CardsModel) View ¶
func (m CardsModel) View() string
type ImageModel ¶
type ImageModel struct {
CardName string
ImageURL string
Error error
Loading bool
Spinner spinner.Model
ImageData string
}
func ImageRenderer ¶
func ImageRenderer(cardName string, imageURL string) ImageModel
func (ImageModel) Init ¶
func (m ImageModel) Init() tea.Cmd
func (ImageModel) View ¶
func (m ImageModel) View() string
type SeriesModel ¶
func SeriesList ¶
func SeriesList() SeriesModel
func (SeriesModel) Init ¶
func (m SeriesModel) Init() tea.Cmd
func (SeriesModel) View ¶
func (m SeriesModel) View() string
Click to show internal directories.
Click to hide internal directories.