deck

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAscii

func GetAscii(card string, reversed bool) string

func IsReversed added in v0.3.0

func IsReversed(query string) bool

func Make_Name added in v0.3.0

func Make_Name(card Cards) string

Types

type Ascii

type Ascii struct {
	Deck []AsciiDeck `json:"deck"`
}

type AsciiDeck

type AsciiDeck struct {
	Name string `json:"name"`
	Card string `json:"card"`
}

type Cards

type Cards struct {
	Suit    string `json:"suit"`
	Value   string `json:"value"`
	Ordinal string `json:"ordinal"`
	Pic     string `json:"pic"`
	Descr   string `json:"descr"`
	Meaning string `json:"meaning"`
	Reverse string `json:"reverse"`
}

func PickCard

func PickCard(query string) Cards

type Deck

type Deck struct {
	Cards []Cards `json:"deck"`
}

Jump to

Keyboard shortcuts

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