repo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 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 Deck

type Deck struct {
	ID          string
	Shuffled    bool
	Composition string
	Codes       []string
}

Deck represents a deck of cards.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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