package
0.0.0-20210611020930-054e78d346eb
Repository: https://github.com/michaelzalla/gophercises.git
Documentation: pkg.go.dev

# Functions

Concat combines a deck with a set of existing decks.
Difference takes a filter function and returns a new deck in which any original cards matching the filter are removed.
New generates an empty deck and applies all filters to the deck.
Shuffled will shuffle a deck randomly.
Sorted takes a deck and performs an in-place sort specified by sortFn.
WithCopies multiplies a deck n times.
WithJokers combines a deck with some number of new Joker cards.
WithStandard combines a deck with a standard 52-card deck.

# Constants

Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of Suits, ordered as they appear in a standard 52-card deck.go:generate stringer -type=Suit.
Enumeration of Suits, ordered as they appear in a standard 52-card deck.go:generate stringer -type=Suit.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of Suits, ordered as they appear in a standard 52-card deck.go:generate stringer -type=Suit.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of Suits, ordered as they appear in a standard 52-card deck.go:generate stringer -type=Suit.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of Suits, ordered as they appear in a standard 52-card deck.go:generate stringer -type=Suit.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.
Enumeration of ranks in order of appearance in a newly minted deck.go:generate stringer -type=Rank.

# Structs

Card defines a given card in a deck.

# Type aliases

FilterFn allows the caller to create a new deck from an exisitng deck.
LessFn is a comparator function for comparing two cards during sorting.
LessFnGetter accepts a deck and returns a corresponding comparator function.
Rank represents the value of a card within its suit.
Suit associated with a Card.