repo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	Rank Rank
	Suit Suit
	Code string
}

Card represents a card.

type Deck

type Deck struct {
	ID       string
	Shuffled bool
	Cards    []Card
}

Deck represents a deck of cards.

type Rank

type Rank struct {
	Name string
	Code string
}

Rank represents the rank of a card.

type Repository

type Repository interface {
	Get(context.Context, string) (*Deck, error)
	Save(context.Context, *Deck) error
}

Repository is an interface to get and save a deck.

type Suit

type Suit struct {
	Name string
	Code string
}

Suit represents the suit of a card.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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