db

package
v0.0.0-...-879e03b Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWhiteCard

func GetWhiteCard() *string

func Load

func Load() (*map[string]*Database, error)

func SelectCards

func SelectCards(sets []int)

func SelectdDB

func SelectdDB(lang string)

Types

type BlackCard

type BlackCard struct {
	Text string `json:"text"`
	Pick uint   `json:"pick"`
}

func GetBlackCard

func GetBlackCard() *BlackCard

type Database

type Database struct {
	Black []BlackCard `json:"black"`
	White []string    `json:"white"`
	Sets  []Set       `json:"sets"`
}

type Set

type Set struct {
	Name     string `json:"name"`
	Official bool   `json:"official"`
	BlackIDs []uint `json:"black"`
	WhiteIDs []uint `json:"white"`
}

Jump to

Keyboard shortcuts

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