package
0.0.0-20250122124320-23b25248e6ad
Repository: https://github.com/quii/learn-go-with-tests.git
Documentation: pkg.go.dev

# Packages

# Functions

AssertPlayerWin allows you to spy on the store's calls to RecordWin.
FileSystemPlayerStoreFromFile creates a PlayerStore from the contents of a JSON file found at path.
NewCLI creates a CLI for playing poker.
NewFileSystemPlayerStore creates a FileSystemPlayerStore initialising the store if needed.
NewLeague creates a League from JSON.
NewPlayerServer creates a PlayerServer with routing configured.
NewTexasHoldem returns a new game.
StdOutAlerter will schedule alerts and print them to os.Stdout.

# Constants

ErrorPlayerNumberPrompt tells the user they entered in the value wrong.
PlayerPrompt is the text asking the user for the number of players.

# Structs

CLI helps players through a game of poker.
FileSystemPlayerStore stores players in the filesystem.
Player stores a name with a number of wins.
PlayerServer is a HTTP interface for player information.
ScheduledAlert holds information about when an alert is scheduled.
SpyBlindAlerter allows you to spy on ScheduleAlertAt calls.
StubPlayerStore implements PlayerStore for testing purposes.
TexasHoldem manages a game of poker.

# Interfaces

BlindAlerter schedules alerts for blind amounts.
Game manages the state of a game.
PlayerStore stores score information about players.

# Type aliases

BlindAlerterFunc allows you to implement BlindAlerter with a function.
League stores a collection of players.